Function at 0x100128cd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1003b890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x6c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov edi, dword [esi]
push 0x18
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x84], eax
call fcn.1000857c
mov ebx, eax
pop ecx
mov dword [ebp - 0x78], ebx
test ebx, ebx
jne 0x10012916
push 7
pop eax
jmp 0x10012a2a
mov byte [ebx + 8], 0
mov dword [ebx], esi
test dword [esi + 0xc], 0x100000
jne 0x100129ec
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x100129ec
cmp byte [eax], 0
je 0x100129ec
cmp dword [0x1003b0bc], 0
je 0x100129ec
mov eax, dword [edi + 8]
inc eax
push eax
mov dword [ebp - 0x70], eax
call fcn.1000829f
mov byte [ebx + 9], 1
or dword [esi + 0xc], 0x80000
pop ecx
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x10012973
push ebx
call sym.sqlite.dll_sqlite3_free
pop ecx
jmp 0x1001290e
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push edi
call dword [edi + 0x24]
push 2
call fcn.1000127c
push eax
mov dword [ebp - 0x88], eax
call fcn.1000129c
mov eax, dword [0x1003bc88]
add esp, 0x18
jmp 0x100129bd
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
push dword [eax + 0x5c]
push dword [ebp - 0x80]
call sub.MSVCR90.dll_strcmp
pop ecx
test eax, eax
mov eax, dword [ebp - 0x70]
pop ecx
jne 0x100129ba
mov ecx, dword [eax]
cmp dword [ecx], edi
je 0x100129c6
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x1001299b
jmp 0x100129cc
mov dword [ebx + 4], eax
inc dword [eax + 0x3c]
push dword [ebp - 0x88]
call fcn.100012ba
push dword [ebp - 0x80]
call sym.sqlite.dll_sqlite3_free
xor edx, edx
pop ecx
pop ecx
cmp dword [ebp - 0x70], edx
jne 0x10012bc6
push 0x50
call fcn.1000857c
mov esi, eax
pop ecx
test esi, esi
jne 0x10012a39
mov dword [ebp - 0x6c], 7
test esi, esi
je 0x10012a10
mov edi, dword [esi]
test edi, edi
je 0x10012a10
call fcn.100123fc
push esi
call sym.sqlite.dll_sqlite3_free
push ebx
call sym.sqlite.dll_sqlite3_free
mov eax, dword [ebp - 0x84]
and dword [eax], 0
pop ecx
pop ecx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031c74
leave
ret
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push 0x4c
push dword [ebp - 0x74]
mov ecx, edi
push esi
call fcn.1000e06f
add esp, 0x10
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x10012a01
and dword [ebp - 0x6c], eax
mov edi, dword [esi]
push 0x64
push eax
lea eax, [ebp - 0x68]
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [edi + 0x68]
xor edi, edi
add esp, 0xc
cmp dword [eax], edi
je 0x10012a90
push edi
push edi
lea ecx, [ebp - 0x68]
push 0x64
push ecx
call fcn.10001134
add esp, 0x10
mov dword [ebp - 0x6c], eax
cmp eax, 0x20a
jne 0x10012a90
mov dword [ebp - 0x6c], edi
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
cmp eax, edi
jne 0x10012a01
mov eax, dword [esi]
mov dword [eax + 0x74], fcn.100098d4
mov dword [eax + 0x78], esi
mov dword [ebx + 4], esi
mov eax, dword [esi]
mov dword [eax + 0xac], 0x100046db
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov ebx, dword [esi]
mov al, byte [ebx + 0x10]
mov byte [esi + 0x11], al
movzx ax, byte [ebp - 0x58]
movzx cx, byte [ebp - 0x57]
shl ax, 8
or ax, cx
mov ecx, 0x200
lea edi, [esi + 0x1c]
mov word [edi], ax
cmp ax, cx
jb 0x10012b27
mov ecx, 0x8000
cmp ax, cx
ja 0x10012b27
movzx eax, ax
lea ecx, [eax - 1]
test eax, ecx
jne 0x10012b27
mov bl, byte [ebp - 0x54]
lea ecx, [ebp - 0x34]
mov byte [esi + 0x12], 1
call fcn.10001f3f
test eax, eax
setne al
lea ecx, [ebp - 0x28]
mov byte [esi + 0x13], al
call fcn.10001f3f
test eax, eax
setne al
mov byte [esi + 0x14], al
jmp 0x10012b40
xor eax, eax
push edi
mov word [edi], ax
call fcn.10009497
xor ebx, ebx
pop ecx
cmp dword [ebp - 0x74], ebx
je 0x10012b40
mov byte [esi + 0x13], bl
mov byte [esi + 0x14], bl
mov cx, word [edi]
movzx ax, bl
mov ebx, dword [esi]
sub cx, ax
push edi
mov word [esi + 0x1e], cx
call fcn.10009497
mov eax, dword [ebp - 0x78]
cmp byte [eax + 9], 0
pop ecx
je 0x10012bbf
push 2
mov dword [esi + 0x3c], 1
call fcn.1000127c
xor ebx, ebx
pop ecx
mov edi, eax
cmp dword [0x1003b00c], ebx
je 0x10012b9e
push ebx
call fcn.1000127c
pop ecx
mov dword [esi + 0x38], eax
cmp eax, ebx
jne 0x10012b9e
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x1e], bl
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x6c], 7
jmp 0x10012a01
push edi
call fcn.1000129c
mov eax, dword [0x1003bc88]
push edi
mov dword [esi + 0x40], eax
mov dword [0x1003bc88], esi
call fcn.100012ba
mov ebx, dword [ebp - 0x78]
pop ecx
pop ecx
jmp 0x10012bc1
mov ebx, eax
mov esi, dword [ebp - 0x7c]
xor edx, edx
cmp byte [ebx + 9], 0
je 0x10012c2d
xor edi, edi
cmp dword [esi + 4], edx
jle 0x10012c2d
mov ecx, dword [esi + 8]
add ecx, 4
mov eax, dword [ecx]
cmp eax, edx
je 0x10012be5
cmp byte [eax + 9], 0
jne 0x10012bf3
inc edi
add ecx, 0x18
cmp edi, dword [esi + 4]
jl 0x10012bd9
jmp 0x10012c2d
mov eax, dword [eax + 0x14]
cmp dword [eax + 0x14], edx
jne 0x10012bf0
mov ecx, dword [ebx + 4]
cmp ecx, dword [eax + 4]
jae 0x10012c15
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov dword [eax + 0x14], ebx
jmp 0x10012c2d
mov esi, dword [eax + 0x10]
cmp dword [esi + 4], ecx
jae 0x10012c1a
mov eax, esi
cmp dword [eax + 0x10], edx
jne 0x10012c0b
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
cmp ecx, edx
je 0x10012c2a
mov dword [ecx + 0x14], ebx
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 0x84]
mov dword [eax], ebx
jmp 0x10012a27