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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
cmp edx, dword [edi + 0x2c]
jbe 0x42faae
push 0x4d6ad4
push 0x10b0b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00412760
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00426250
add esp, 0xc
test eax, eax
jne 0x42fca5
mov esi, dword [esp + 0xc]
cmp byte [esi + 1], al
je 0x42faf8
push 0x4d6ad4
push 0x10b10
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00412760
add esp, 0x14
mov ebx, 0xb
jmp 0x42fc3e
mov byte [esi + 1], 1
xor ecx, ecx
movzx eax, byte [esi + 9]
mov dword [esp + 0xc], eax
movzx eax, word [esi + 0x16]
mov dword [esp + 0x10], ecx
mov edx, eax
mov dword [esp + 0x1c], ecx
cmp cx, ax
jae 0x42fb8e
nop dword [eax]
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx edi, cx
and edi, eax
add edi, dword [esi + 0x38]
cmp byte [esi + 8], 0
jne 0x42fb5a
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
push ebx
push 1
bswap edx
call fcn.0042fa50
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42fc3e
lea eax, [esp + 0x20]
mov edx, edi
push eax
mov ecx, esi
call fcn.0042bba0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42fc3e
mov ecx, dword [esp + 0x10]
movzx edx, word [esi + 0x16]
inc ecx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
cmp ecx, edx
jl 0x42fb20
mov edi, dword [esp + 0x18]
cmp byte [esi + 8], 0
jne 0x42fbba
mov eax, dword [esi + 0x38]
mov ecx, edi
mov edx, dword [esp + 0xc]
push ebx
push 1
mov edx, dword [eax + edx + 8]
bswap edx
call fcn.0042fa50
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42fc3e
jmp 0x42fbc3
test ebx, ebx
je 0x42fbc3
movzx eax, dx
add dword [ebx], eax
cmp dword [ebp + 8], 0
je 0x42fbdd
push dword [esi + 4]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.0042b600
add esp, 4
mov ebx, eax
jmp 0x42fc3e
mov ecx, dword [esi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x42fc02
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x42fc02
cmp dword [edx + 0x60], 0
je 0x42fbfe
call fcn.0041ec00
jmp 0x42fc23
xor ebx, ebx
jmp 0x42fc29
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x42fc3e
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x42fc1e
call fcn.00420780
jmp 0x42fc23
call fcn.004206b0
mov ebx, eax
test ebx, ebx
jne 0x42fc3e
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
movzx edx, byte [eax + ecx]
mov ecx, esi
or edx, 8
call fcn.004260f0
mov byte [esi + 1], 0
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x42fc9c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c2a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0041a3d0
mov eax, ebx
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret