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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x24]
mov edi, edx
mov esi, ecx
push ebx
push edx
push ecx
call dword [ecx + 0x50]
add esp, 0xc
movzx eax, word [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
xor ebp, ebp
cmp ecx, eax
je 0x4607ff
movzx edx, word [ebx + 0x12]
add edi, edx
cmp edi, dword [esi + 0x3c]
jbe 0x460603
push 0x50d803
push 0x1144e
jmp 0x4607e6
mov edx, dword [esi + 0x34]
mov ebx, dword [edi - 4]
not eax
add ecx, eax
mov esi, dword [edx + 0x28]
mov dword [esp + 8], edx
xor edx, edx
bswap ebx
lea eax, [esi + ecx - 4]
add esi, 0xfffffffc
div esi
mov esi, eax
jmp 0x46063c
call fcn.00442220
nop word [eax + eax]
mov ebx, dword [esp + 0xc]
test ebp, ebp
jne 0x4607ff
sub esi, 1
jb 0x460809
cmp ebx, 2
mov dword [esp + 0xc], 0
mov dword [esp], 0
jb 0x4607dc
mov eax, dword [esp + 8]
cmp ebx, dword [eax + 0x30]
ja 0x4607dc
test esi, esi
je 0x460699
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
mov edx, ebx
push eax
lea eax, [esp + 4]
push eax
call fcn.00446cb0
add esp, 8
test eax, eax
jne 0x46080d
mov edx, dword [esp]
test edx, edx
jne 0x46072d
mov eax, dword [esp + 8]
mov dword [esp + 4], esi
mov esi, dword [eax]
mov eax, dword [esi + 0xd4]
push 0
push ebx
push dword [eax + 0x2c]
call dword [0x51d228]
add esp, 0xc
test eax, eax
je 0x460700
mov ebp, eax
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0xd4]
cmp dword [eax], 0
je 0x4606d5
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
jmp 0x4606e4
mov edx, ebx
push ebp
call fcn.0043fa60
add esp, 4
test eax, eax
je 0x460700
mov edx, dword [eax + 8]
cmp dword [edx + 4], ebx
jne 0x46070f
mov esi, dword [esp + 4]
test edx, edx
mov dword [esp], edx
jne 0x46072d
jmp 0x460737
mov esi, dword [esp + 4]
xor edx, edx
mov dword [esp], 0
jmp 0x460737
mov ecx, dword [eax + 4]
mov esi, dword [esp + 4]
mov dword [edx + 0x38], ecx
mov ecx, dword [esp + 8]
mov dword [edx + 0x48], eax
mov dword [edx + 0x34], ecx
mov dword [edx + 4], ebx
mov byte [edx + 9], 0
mov dword [esp], edx
mov eax, dword [edx + 0x48]
cmp word [eax + 0x1e], 1
jne 0x460750
mov ecx, dword [esp + 8]
push ebx
call fcn.00460820
add esp, 4
mov ebp, eax
jmp 0x460773
push 0x50d803
push 0x11473
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov ebp, 0xb
mov eax, dword [esp]
test eax, eax
je 0x460630
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x460630
test byte [ecx + 0x1c], 0x20
je 0x460625
mov dword [esp + 4], esi
mov esi, dword [ecx + 0x14]
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [esi + 0x88], ecx
mov ebx, dword [ecx + 0x18]
mov edi, dword [esi + 0x98]
mov esi, dword [esi + 0x3c]
dec ebx
mov eax, ebx
mul edi
sar edi, 0x1f
imul edi, ebx
add edx, edi
mov edi, dword [esi]
push dword [ecx + 4]
push edx
push eax
push esi
mov esi, dword [esp + 0x14]
call dword [edi + 0x48]
add esp, 0x10
jmp 0x460630
push 0x50d803
push 0x1145f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov ebp, 0xb
mov eax, ebp
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebp, ebp
jmp 0x4607ff
mov ebp, eax
jmp 0x4607ff