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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
cmp word [edi + 0x16], 0
mov eax, dword [edi + 0x34]
mov dword [esp + 0xc], eax
jne 0x421fab
push 0x54b514
push 0x1043a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x24]
mov ecx, eax
call fcn.0041fc40
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4221b1
mov eax, dword [edi + 0x24]
add esi, 4
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x4c]
push edi
mov dword [esp + 0x2c], esi
call eax
mov edi, dword [esp + 0x20]
lea edx, [ebx + 0xd]
movzx eax, ax
mov ecx, edi
mov dword [esp + 0x50], eax
call fcn.0041b2d0
lea eax, [esp + 0x50]
mov ecx, edi
push eax
lea eax, [esp + 0x38]
push eax
lea edx, [ebx + 1]
call fcn.00421990
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x4221b1
mov ecx, dword [esp + 0xc]
mov ax, word [ecx + 0x24]
sub ax, word [edi + 0x12]
sub ax, word [esp + 0x48]
sub ax, 2
mov word [edi + 0x14], ax
cmp byte [ecx + 0x11], bl
je 0x4220ae
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push 5
call fcn.00419f80
mov eax, dword [esp + 0x54]
add esp, 0xc
mov ebx, dword [esp + 0x2c]
cmp ax, word [edi + 0x10]
jbe 0x4220ae
test ebx, ebx
jne 0x4220ae
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x18]
mov eax, dword [edi + 0x50]
push edi
call eax
movzx eax, word [esp + 0x4c]
add esp, 0xc
cmp eax, dword [esp + 0x3c]
jae 0x4220ae
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
mov ecx, dword [edi + 0x34]
push eax
movzx eax, word [esp + 0x46]
push dword [edi + 4]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.00419f80
mov ebx, dword [esp + 0x38]
add esp, 0xc
mov edx, dword [esp + 0x1c]
movzx ecx, word [edx + 0x16]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edx, ecx
lea eax, [ecx + 9]
mov esi, eax
mov al, byte [ecx]
lea ecx, [edx + 1]
test al, al
jns 0x4220e4
mov edx, ecx
cmp ecx, esi
jb 0x4220d5
mov esi, dword [esp + 0x24]
lea eax, [ecx + 9]
mov dword [esp + 0xc], eax
mov edx, ecx
mov edi, eax
mov al, byte [ecx]
lea ecx, [edx + 1]
mov byte [esi], al
inc esi
test al, al
jns 0x422105
mov edx, ecx
cmp ecx, edi
jb 0x4220f3
mov edi, dword [esp + 0x18]
test ebx, ebx
jne 0x42213b
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 4]
mov eax, dword [esp + 0x30]
sub esi, eax
push 0
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
push eax
movzx edx, word [esi + 0x16]
call fcn.004216a0
mov ebx, dword [esp + 0x40]
add esp, 0x14
jmp 0x42213f
mov esi, dword [esp + 0x10]
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [esp + 0x20]
bswap edx
mov dword [ecx + eax + 8], edx
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4221aa
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.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 + 0x40]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040f8d0
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret