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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 4], edx
mov ebx, ecx
mov ecx, dword [esp + 4]
mov edx, eax
push esi
push edi
xor esi, esi
and edx, 1
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
cmp ecx, 1
je 0x439fe9
cmp byte [ebx + 0x16], 0
je 0x439fe9
cmp byte [ebx + 0x10], 1
je 0x439fdf
test al, 2
je 0x439fe9
mov dword [esp + 0x24], 1
jmp 0x439fed
mov dword [esp + 0x24], esi
test ecx, ecx
jne 0x43a016
push 0x53fadc
push 0xb9f8
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0042f060
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
mov byte [ebx + 0x17], 1
test eax, eax
je 0x43a028
mov esi, eax
jmp 0x43a30a
cmp dword [esp + 0x24], esi
je 0x43a1e2
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x43a065
lea edx, [esp + 0x14]
push edx
mov edx, ecx
mov ecx, eax
call fcn.0043d6c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43a460
cmp dword [esp + 0x14], edi
jne 0x43a1e2
mov ecx, dword [esp + 0xc]
mov eax, dword [ebx + 0x98]
lea edx, [esp + 0x10]
mov esi, dword [ebx + 0x3c]
dec ecx
push edx
push eax
push 0
cdq
push ecx
push edx
mov dword [esp + 0x24], edi
mov edi, dword [esi]
push eax
mov dword [esp + 0x40], ecx
call fcn.004f3d00
push edx
push eax
mov eax, dword [edi + 0x44]
push esi
call eax
mov esi, eax
add esp, 0x14
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x43a460
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x43a1e2
cmp byte [ebx + 0x10], 1
mov edi, dword [esp + 0xc]
jbe 0x43a107
mov edx, edi
mov ecx, ebx
call fcn.0043a490
mov dword [esp + 0x20], eax
test eax, eax
je 0x43a0ff
push dword [esp + 0x10]
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
push 0
push dword [esp + 0x30]
cdq
mov edi, dword [esi]
push edx
push eax
call fcn.004f3d00
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
jmp 0x43a1c4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov esi, dword [ebx + 0x88]
mov dword [esp + 0x20], esi
test esi, esi
je 0x43a13c
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x88], eax
mov dword [esi + 0xc], 0
movzx eax, word [ebx + 0x8c]
push eax
push 0
push dword [esi + 8]
call fcn.004f53d0
add esp, 0xc
jmp 0x43a1b5
movzx eax, word [ebx + 0x8c]
cdq
add eax, 0x28
mov dword [esp + 0x2c], eax
adc edx, 0
push edx
push eax
call fcn.0042c970
mov esi, eax
add esp, 8
mov dword [esp + 0x20], esi
test esi, esi
je 0x43a175
push dword [esp + 0x2c]
push 0
push esi
call fcn.004f53d0
add esp, 0xc
test esi, esi
jne 0x43a1a5
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x98]
push 0
push dword [esp + 0x30]
mov edi, dword [esi]
cdq
push edx
push eax
call fcn.004f3d00
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov esi, 7
jmp 0x43a1c4
lea eax, [esi + 0x28]
mov dword [esi + 0x18], 0x10040
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x14], edi
mov dword [esi + 4], eax
inc dword [ebx + 0x78]
xor esi, esi
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x43a1da
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x43a460
mov ecx, dword [ebx + 0xcc]
mov edi, dword [esp + 0xc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push edi
push dword [ecx + 0x28]
call dword [0x547f64]
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x43a2bb
mov eax, dword [ebx + 0xcc]
mov dword [esp + 0x28], eax
cmp byte [eax + 0x1d], 2
je 0x43a2a8
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x43a23c
cmp word [ecx + 0x1a], 0
jne 0x43a235
test byte [ecx + 0x18], 8
je 0x43a23c
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x43a228
mov dword [eax + 8], ecx
test ecx, ecx
jne 0x43a260
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x43a281
nop word [eax + eax]
cmp word [ecx + 0x1a], 0
je 0x43a260
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x43a250
jmp 0x43a281
push ecx
push dword [eax + 0x24]
mov eax, dword [eax + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x43a27d
cmp esi, 5
je 0x43a27d
mov eax, dword [esp + 0x2c]
jmp 0x43a29c
mov eax, dword [esp + 0x28]
push 2
push edi
push dword [eax + 0x28]
call dword [0x547f64]
xor esi, esi
add esp, 0xc
test eax, eax
mov ecx, 7
cmove esi, ecx
test esi, esi
jne 0x43a460
test eax, eax
jne 0x43a2bb
mov edi, dword [ebp + 8]
mov esi, 7
mov dword [edi], 0
jmp 0x43a463
mov edi, dword [eax + 4]
mov ecx, dword [ebx + 0xcc]
cmp dword [edi], 0
jne 0x43a2da
mov edx, dword [esp + 0xc]
push eax
call fcn.00435340
add esp, 4
mov edi, eax
jmp 0x43a2fd
movzx eax, word [edi + 0x1a]
mov dword [esp + 0x2c], 0
mov edx, eax
cmp word [esp + 0x2c], ax
jne 0x43a2f6
inc dword [ecx + 0xc]
movzx edx, word [edi + 0x1a]
lea eax, [edx + 1]
mov word [edi + 0x1a], ax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [eax], edi
test esi, esi
jne 0x43a460
cmp dword [edi + 0x10], esi
je 0x43a32a
test edx, edx
jne 0x43a32a
inc dword [ebx + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], ebx
cmp ecx, 0x7fffffff
ja 0x43a41a
mov eax, dword [0x548bfc]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp ecx, eax
je 0x43a41a
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x18]
jne 0x43a3af
cmp dword [ebx + 0x18], ecx
jb 0x43a3af
test edx, edx
jne 0x43a3af
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x43a3af
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x43a393
cmp dword [esp + 0x24], edx
jne 0x43a393
lea edx, [esp + 0x14]
push edx
mov edx, ecx
mov ecx, eax
call fcn.0043d6c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43a438
mov edx, dword [esp + 0x14]
mov ecx, edi
inc dword [ebx + 0xbc]
call fcn.004384a0
mov esi, eax
test esi, esi
je 0x43a411
jmp 0x43a438
cmp ecx, dword [ebx + 0x9c]
jbe 0x43a3be
mov esi, 0xd
jmp 0x43a438
test edx, edx
je 0x43a3fe
mov eax, dword [0x54b128]
test eax, eax
je 0x43a3d1
call eax
mov ecx, dword [esp + 0xc]
cmp ecx, dword [ebx + 0x1c]
ja 0x43a3ea
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x43a3ea
mov edx, ecx
mov ecx, eax
call fcn.00434cd0
mov ecx, dword [esp + 0xc]
mov edx, ecx
mov ecx, ebx
call fcn.004373b0
mov eax, dword [0x54b12c]
test eax, eax
je 0x43a3fe
call eax
push dword [ebx + 0x98]
push 0
push dword [edi + 4]
call fcn.004f53d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x53fadc
push 0xba4d
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0042f060
add esp, 0x10
mov esi, 0xb
test byte [edi + 0x18], 2
je 0x43a447
mov dl, 1
mov ecx, edi
call fcn.00435210
mov eax, dword [edi + 0x1c]
push 1
dec dword [eax + 0xc]
mov eax, dword [edi + 0x1c]
push dword [edi]
push dword [eax + 0x28]
call dword [0x547f68]
add esp, 0xc
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x78], 0
jne 0x43a47c
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x43a47c
mov ecx, ebx
call fcn.004379f0
mov dword [edi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret