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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x14], edi
cmp byte [edi], 0
jne 0x4208b4
mov bl, byte [edi + 1]
test bl, 2
je 0x4208b4
mov ecx, dword [edi + 0x20]
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x24]
cmp ecx, edx
jne 0x420859
cmp eax, dword [ebp + 0xc]
jne 0x42085c
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [ebp + 0xc]
jg 0x4208b4
jl 0x420864
cmp ecx, edx
jae 0x4208b4
test bl, 8
jne 0x4208c8
add ecx, 1
adc eax, 0
cmp ecx, edx
jne 0x4208b4
mov ebx, dword [ebp + 0xc]
cmp eax, ebx
jne 0x4208b4
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov dword [eax], 0
call fcn.00421150
test eax, eax
jne 0x4208ab
mov ecx, edi
call fcn.0041fde0
mov eax, dword [ebp + 8]
cmp dword [edi + 0x20], eax
jne 0x4208b4
cmp dword [edi + 0x24], ebx
jne 0x4208b4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x420acf
mov ecx, edi
call fcn.004204e0
test eax, eax
je 0x4208da
cmp eax, 0x10
jne 0x420acf
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
sub eax, esi
lea esi, [edi + 0x74]
mov dword [esp + 0x1c], eax
mov edx, dword [esi]
mov ecx, eax
xor edi, edi
mov dword [esp + 0x10], edx
movzx ebx, word [edx + 0x18]
mov eax, dword [edx + 0x40]
dec ebx
mov esi, ebx
mov dword [esp + 0x18], eax
sar esi, cl
mov cl, byte [edx + 2]
mov byte [esp + 0xf], cl
nop dword [eax]
mov ax, word [eax + esi*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x44]
cmp byte [esp + 0xf], 0
je 0x420942
cmp byte [ecx], 0x80
jb 0x420941
mov eax, dword [edx + 0x3c]
inc ecx
cmp ecx, eax
jae 0x420a5a
cmp byte [ecx], 0x80
jae 0x420933
inc ecx
lea edx, [esp + 0x20]
call fcn.0040ab70
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp ecx, dword [ebp + 0xc]
jg 0x42096d
jl 0x420961
mov edx, dword [ebp + 8]
cmp eax, edx
jae 0x420970
lea edi, [esi + 1]
cmp edi, ebx
jle 0x420982
or eax, 0xffffffff
jmp 0x420999
mov edx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jl 0x4209bf
jg 0x42097b
cmp eax, edx
jbe 0x4209bf
lea ebx, [esi - 1]
cmp edi, ebx
jg 0x420994
mov edx, dword [esp + 0x10]
lea esi, [ebx + edi]
mov eax, dword [esp + 0x18]
sar esi, 1
jmp 0x420910
mov eax, 1
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp byte [edx + 8], 0
je 0x4209d7
mov ecx, dword [ebp + 0x10]
mov word [ebx + 0x46], si
mov dword [ecx], eax
xor eax, eax
xor ecx, ecx
mov word [ebx + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov word [ebx + 0x46], si
cmp byte [edx + 8], 0
jne 0x420ab4
mov edi, esi
movzx eax, word [edx + 0x18]
cmp edi, eax
jl 0x4209ec
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x420a06
mov eax, dword [edx + 0x40]
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax]
mov al, byte [ebx + 0x44]
mov word [ebx + 0x46], di
bswap edx
cmp al, 0x13
jge 0x420a84
and byte [ebx + 1], 0xf9
lea esi, [ebx + 0x74]
movsx eax, al
xor ecx, ecx
mov word [ebx + 0x32], cx
mov word [ebx + eax*2 + 0x48], di
movsx ecx, byte [ebx + 0x44]
mov eax, dword [esi]
mov dword [ebx + ecx*4 + 0x78], eax
xor eax, eax
mov ecx, dword [ebx + 0x14]
inc byte [ebx + 0x44]
mov word [ebx + 0x46], ax
movzx eax, byte [ebx + 2]
push eax
push ebx
push esi
call fcn.0041d560
add esp, 0xc
test eax, eax
jne 0x420aa7
mov eax, dword [esp + 0x1c]
jmp 0x4208e8
push 0x5d22ac
push 0x122c7
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00408a80
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5d22ac
push 0x1213e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00408a80
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [ebx + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [ebx + 1], 2
mov dword [ebx + 0x20], eax
xor eax, eax
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x24], ecx
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret