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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov ecx, dword [edi + 0x48]
mov esi, dword [edi + 0x34]
mov dword [esp + 0x28], esi
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x42e4d9
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x42e4d9
cmp dword [edx + 0x60], 0
je 0x42e504
call fcn.0041ec00
jmp 0x42e4fe
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x42e579
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x42e4f9
call fcn.00420780
jmp 0x42e4fe
call fcn.004206b0
mov ebx, eax
test ebx, ebx
jne 0x42e579
push 0
push dword [edi + 4]
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
lea edx, [esp + 0x24]
call fcn.0042a9e0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x10], eax
mov ecx, edi
lea eax, [esp + 0x10]
push eax
call fcn.0042cf30
mov ebx, dword [esp + 0x14]
add esp, 4
cmp byte [esi + 0x11], 0
mov esi, dword [esp + 0x14]
je 0x42e752
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x42e579
test esi, esi
jne 0x42e5ed
push 0x4d6ad4
push 0xecd3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00412760
add esp, 0x14
lea ebx, [esi + 0xb]
mov eax, dword [esp + 0x20]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42e7d3
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x42e7ce
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov esi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
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 + 0x20]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
cmp esi, 2
jae 0x42e5f6
xor ecx, ecx
jmp 0x42e632
mov ecx, dword [esp + 0x28]
mov eax, 0xcccccccd
add esi, 0xfffffffe
mul dword [ecx + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [0x4da850]
sub esi, edx
xor edx, edx
div dword [ecx + 0x20]
xor ecx, ecx
dec eax
cmp esi, eax
sete cl
add esi, 2
add ecx, esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x28]
push 0
push edx
push ecx
mov eax, dword [eax]
push eax
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0xc8]
call eax
add esp, 0x10
test eax, eax
je 0x42e65b
mov ebx, eax
jmp 0x42e752
mov eax, esi
sub eax, dword [esp + 0x10]
dec eax
lea edx, [eax + eax*4]
test edx, edx
jns 0x42e68e
push 0x4d6ad4
push 0xecde
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00412760
add esp, 0x14
mov ebx, 0xb
jmp 0x42e6fc
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 4]
add esi, edx
cmp byte [esi], 5
jne 0x42e6a7
mov eax, dword [esi + 1]
bswap eax
cmp eax, dword [esp + 0x1c]
je 0x42e700
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x42e6c9
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x42e6c9
cmp dword [edx + 0x60], 0
je 0x42e6c5
call fcn.0041ec00
jmp 0x42e6ea
xor ebx, ebx
jmp 0x42e6f0
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x42e700
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x42e6e5
call fcn.00420780
jmp 0x42e6ea
call fcn.004206b0
mov ebx, eax
test ebx, ebx
jne 0x42e6fc
mov eax, dword [esp + 0x1c]
bswap eax
mov byte [esi], 5
mov dword [esi + 1], eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x42e752
test byte [ecx + 0x1c], 0x20
je 0x42e74d
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov esi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
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
mov edi, dword [esp + 0x34]
add esp, 0x10
jmp 0x42e752
call fcn.0041a3d0
test ebx, ebx
jne 0x42e579
movzx eax, byte [edi + 0xc]
mov ebx, dword [esp + 0x18]
add eax, eax
push eax
lea eax, [edi + 0x1a]
push eax
lea eax, [ebx + 0x1a]
push eax
call fcn.004ae080
movzx eax, byte [edi + 0xc]
add esp, 0xc
shl eax, 2
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [ebx + 0x24]
push eax
call fcn.004ae080
mov al, byte [edi + 0xc]
add esp, 0xc
mov byte [ebx + 0xc], al
mov ecx, edi
mov eax, dword [ebx + 0x38]
movzx edx, byte [eax]
and edx, 0xfffffff7
call fcn.004260f0
mov eax, dword [edi + 0x38]
movzx ecx, byte [edi + 9]
mov edx, dword [esp + 0x14]
bswap edx
mov dword [ecx + eax + 8], edx
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret
call fcn.0041a3d0
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ac4d4
mov esp, ebp
pop ebp
ret