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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x559940]
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 0x4237c9
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4237c9
cmp dword [edx + 0x60], 0
je 0x4237f4
call fcn.00414010
jmp 0x4237ee
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x42386b
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x4237e9
call fcn.00415cd0
jmp 0x4237ee
call fcn.00415c50
mov ebx, eax
test ebx, ebx
jne 0x42386b
push 0
push dword [edi + 4]
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
lea edx, [esp + 0x24]
call fcn.0041fc40
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x10], eax
mov ecx, edi
lea eax, [esp + 0x10]
push eax
call fcn.004221d0
mov ecx, dword [esp + 0x18]
add esp, 4
cmp byte [esi + 0x11], 0
mov ebx, dword [esp + 0x10]
je 0x423a4b
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x42386b
test ecx, ecx
jne 0x4238df
push 0x54b514
push 0xecd3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov ebx, 0xb
mov eax, dword [esp + 0x20]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x423acc
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x423ac7
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.004f4a20
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.004f49c2
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jae 0x4238e8
xor ecx, ecx
jmp 0x423924
lea esi, [ecx - 2]
mov eax, 0xcccccccd
mov ecx, dword [esp + 0x28]
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 [0x55b1cc]
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 + 0x28]
mov eax, dword [esi]
lea edx, [esp + 0x28]
push 0
push edx
push ecx
push eax
mov eax, dword [eax + 0xc8]
mov dword [esp + 0x20], ecx
call eax
add esp, 0x10
test eax, eax
je 0x423949
mov ebx, eax
jmp 0x423a4b
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
dec eax
lea edx, [eax + eax*4]
test edx, edx
jns 0x42397e
push 0x54b514
push 0xecde
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov ebx, 0xb
jmp 0x4239f5
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
add eax, edx
mov dword [esp + 0x10], eax
cmp byte [eax], 5
lea esi, [eax + 1]
jne 0x42399d
mov eax, dword [esi]
bswap eax
cmp eax, dword [esp + 0x1c]
je 0x4239f9
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4239bf
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4239bf
cmp dword [edx + 0x60], 0
je 0x4239bb
call fcn.00414010
jmp 0x4239e0
xor ebx, ebx
jmp 0x4239e6
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x4239f9
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x4239db
call fcn.00415cd0
jmp 0x4239e0
call fcn.00415c50
mov ebx, eax
test ebx, ebx
jne 0x4239f5
mov eax, dword [esp + 0x10]
mov byte [eax], 5
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [esi], eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x423a4b
test byte [ecx + 0x1c], 0x20
je 0x423a46
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.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x34]
add esp, 0x10
jmp 0x423a4b
call fcn.0040f8d0
test ebx, ebx
jne 0x42386b
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.004f79b0
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.004f79b0
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.0041b2d0
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.004f49c2
mov esp, ebp
pop ebp
ret
call fcn.0040f8d0
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret