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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0x14], 0
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x1c], ebx
cmp eax, 2
jb 0x45798c
cmp eax, dword [edi + 0x2c]
ja 0x45798c
test esi, esi
je 0x45766f
mov eax, dword [esi + 0x48]
inc word [eax + 0x1e]
mov eax, dword [eax + 0xc]
inc dword [eax + 0xc]
jmp 0x457678
mov edx, eax
call fcn.00452990
mov esi, eax
mov ecx, dword [ebx + 0x48]
mov dword [esp + 0x10], esi
call fcn.0044c100
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4578c9
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x24]
bswap eax
mov dword [esp + 0x24], eax
inc eax
bswap eax
mov dword [ecx + 0x24], eax
test byte [edi + 0x16], 4
je 0x4576fb
test esi, esi
jne 0x4576d3
mov edx, dword [ebp + 8]
lea eax, [esp + 0x10]
push ebx
push eax
mov ecx, edi
call fcn.00452930
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x457918
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x48]
call fcn.0044c100
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4578c9
mov eax, dword [esi + 0x34]
push dword [eax + 0x20]
push ebx
push dword [esi + 0x38]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [edi + 0x11], 0
je 0x457723
mov edx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
push 0
push 2
mov ecx, edi
call fcn.004513a0
mov ebx, dword [esp + 0x24]
add esp, 0xc
test ebx, ebx
jne 0x4578c9
cmp dword [esp + 0x24], 0
je 0x457876
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push 0
push ecx
mov ecx, edi
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x20]
bswap eax
mov edx, eax
mov dword [esp + 0x28], eax
call fcn.00452930
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4578c9
mov ecx, dword [esp + 0x14]
mov ebx, dword [edi + 0x24]
shr ebx, 2
mov eax, dword [ecx + 0x38]
mov edx, dword [eax + 4]
lea eax, [ebx - 2]
bswap edx
mov dword [esp + 0x24], edx
cmp edx, eax
jbe 0x4577a0
push 0x52a07c
push 0x112ef
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov ebx, 0xb
jmp 0x4578c9
lea eax, [ebx - 8]
cmp edx, eax
jae 0x457876
mov ecx, dword [ecx + 0x48]
call fcn.0044c100
mov ebx, eax
test ebx, ebx
jne 0x4578c9
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov eax, dword [edx + 0x38]
lea ecx, [ebx + 1]
bswap ecx
mov dword [eax + 4], ecx
mov eax, dword [edx + 0x38]
mov ecx, dword [ebp + 8]
bswap ecx
mov dword [eax + ebx*4 + 8], ecx
test esi, esi
je 0x45780c
test byte [edi + 0x16], 4
jne 0x45780c
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx + 0x14]
cmp byte [edx + 0xc], 0
jne 0x45780c
movzx eax, word [ecx + 0x1c]
test al, 2
je 0x45780c
cmp dword [edx + 0x60], 0
jne 0x45780c
and eax, 0xfffb
or eax, 0x10
mov word [ecx + 0x1c], ax
mov eax, dword [edi + 0x3c]
xor ebx, ebx
test eax, eax
jne 0x45785a
mov eax, dword [edi + 0x2c]
push ebx
push 0x200
mov dword [esp + 0x28], eax
call fcn.0043a970
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x45784e
push 0x1fc
add eax, 4
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x45785a
lea ebx, [eax + 7]
jmp 0x4578c9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
ja 0x4578c9
test eax, eax
jne 0x457869
xor ebx, ebx
jmp 0x4578c9
mov edx, ecx
mov ecx, eax
call fcn.004445d0
mov ebx, eax
jmp 0x4578c9
test esi, esi
jne 0x45789b
mov edx, dword [ebp + 8]
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, edi
call fcn.00452930
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x457918
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x48]
call fcn.0044c100
mov ebx, eax
test ebx, ebx
jne 0x4578c9
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x20]
bswap ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp + 8]
bswap ecx
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x38]
mov dword [eax + 0x20], ecx
test esi, esi
je 0x457925
mov byte [esi], 0
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45791e
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.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x457925
mov esi, dword [esp + 0x10]
jmp 0x4578c9
mov ecx, edx
call fcn.00444eb0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x457983
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45797c
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.00511980
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 esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.00444eb0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x52a07c
push 0x112b9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret