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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
mov ecx, eax
push esi
xor esi, esi
and ecx, 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ecx
cmp ebx, 1
je 0x42c7f0
cmp byte [edi + 0x74], 0
je 0x42c7f0
cmp byte [edi + 0x10], 1
je 0x42c7e6
test al, 2
je 0x42c7f0
mov dword [esp + 0x18], 1
jmp 0x42c7f4
mov dword [esp + 0x18], esi
cmp ebx, esi
jne 0x42c81c
push 0x4bcee4
push 0xb450
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00420c70
add esp, 0x10
mov eax, 0xb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x28]
cmp eax, esi
je 0x42c82a
mov esi, eax
jmp 0x42c99c
cmp dword [esp + 0x18], esi
je 0x42c930
mov eax, dword [edi + 0xd0]
cmp eax, esi
je 0x42c861
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0042fc10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42cad7
cmp dword [esp + 0x10], eax
jne 0x42c930
mov esi, dword [edi + 0x98]
xor ecx, ecx
push ecx
mov dword [esp + 0x10], ecx
mov eax, esi
cdq
lea ecx, [ebx - 1]
push ecx
push edx
push eax
call fcn.004a9340
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x42cad7
cmp dword [esp + 0xc], eax
je 0x42c930
cmp byte [edi + 0x10], 1
jbe 0x42c8c9
mov eax, ebx
mov ecx, edi
call fcn.0042cb10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42c8e2
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
mov esi, edi
call fcn.0042b4c0
add esp, 0xc
mov esi, eax
jmp 0x42c913
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax]
mov eax, dword [edi + 0x98]
push ecx
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
cdq
dec ecx
push ecx
push edx
push eax
call fcn.004a9340
push edx
mov edx, dword [ebx + 0x48]
push eax
mov eax, dword [edi + 0x3c]
push eax
call edx
mov ebx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42c928
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x42cad7
mov ecx, dword [edi + 0xcc]
movzx eax, byte [ecx + 0x1d]
mov edx, dword [ecx + 0x28]
and eax, 3
push eax
push ebx
push edx
call dword [0x4c4cb4]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42c976
mov esi, dword [edi + 0xcc]
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00427470
mov esi, eax
add esp, 8
test esi, esi
jne 0x42cad7
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xcc]
push eax
push ebx
push ecx
call fcn.00427560
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov dword [edx], eax
test eax, eax
jne 0x42c998
lea esi, [eax + 7]
jmp 0x42cad7
mov ecx, dword [esp + 0x1c]
test esi, esi
jne 0x42cad7
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp dword [esi + 0x10], 0
mov dword [esp + 0xc], esi
je 0x42c9c5
test ecx, ecx
jne 0x42c9c5
inc dword [edi + 0xb8]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], edi
cmp ebx, 0x7fffffff
ja 0x42cab0
mov eax, dword [0x4c4d40]
cdq
idiv dword [edi + 0x98]
inc eax
cmp ebx, eax
je 0x42cab0
cmp byte [edi + 0xf], 0
jne 0x42ca4a
cmp dword [edi + 0x18], ebx
jb 0x42ca4a
test ecx, ecx
jne 0x42ca4a
mov edx, dword [edi + 0x3c]
cmp dword [edx], ecx
je 0x42ca4a
mov eax, dword [edi + 0xd0]
test eax, eax
je 0x42ca2c
cmp dword [esp + 0x18], ecx
jne 0x42ca2c
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0042fc10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42cace
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc dword [edi + 0xbc]
push esi
call fcn.0042a900
mov esi, eax
add esp, 4
test esi, esi
je 0x42caa8
jmp 0x42cace
cmp ebx, dword [edi + 0x9c]
jbe 0x42ca59
mov esi, 0xd
jmp 0x42cace
test ecx, ecx
je 0x42ca93
mov eax, dword [0x4c73c4]
test eax, eax
je 0x42ca68
call eax
cmp ebx, dword [edi + 0x1c]
ja 0x42ca7e
mov eax, dword [edi + 0x38]
test eax, eax
je 0x42ca7e
push ebx
push eax
call fcn.00426d30
add esp, 8
push ebx
push edi
call fcn.004297b0
mov eax, dword [0x4c73c8]
add esp, 8
test eax, eax
je 0x42ca93
call eax
mov edx, dword [edi + 0x98]
mov eax, dword [esi + 4]
push edx
push 0
push eax
call fcn.00499a80
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4bcee4
push 0xb49f
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00420c70
add esp, 0x10
mov esi, 0xb
mov eax, dword [esp + 0xc]
call fcn.00427600
cmp dword [edi + 0x78], 0
jne 0x42caf2
mov ecx, dword [edi + 0xcc]
cmp dword [ecx + 0xc], 0
jne 0x42caf2
push edi
call fcn.00429df0
add esp, 4
mov edx, dword [ebp + 0xc]
mov eax, esi
pop esi
mov dword [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret