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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 8]
and ecx, 1
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], ecx
cmp edi, 1
je 0x457f0b
cmp byte [ebx + 0x74], 0
je 0x457f0b
cmp byte [ebx + 0x10], 1
je 0x457f04
test al, 2
je 0x457f0b
mov ecx, 1
jmp 0x457f0d
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test edi, edi
jne 0x457f37
push 0x4c8db4
push 0xb44a
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004190b0
add esp, 0x10
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x457f45
mov esi, eax
jmp 0x458335
test ecx, ecx
je 0x4580df
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x457f78
lea ecx, [ebp - 4]
push ecx
push edi
push eax
call fcn.00474de0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x458335
cmp dword [ebp - 4], eax
jne 0x4580df
mov eax, dword [ebx + 0x98]
lea edx, [ebp + 0x14]
mov esi, dword [ebx + 0x3c]
lea ecx, [edi - 1]
push edx
push eax
push 0
cdq
push ecx
push edx
mov dword [ebp + 0x14], 0
mov edi, dword [esi]
push eax
mov dword [ebp - 0xc], ecx
call fcn.004a0ab0
push edx
push eax
mov eax, dword [edi + 0x44]
push esi
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x458335
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
test eax, eax
je 0x4580dc
cmp byte [ebx + 0x10], 1
mov esi, dword [ebp + 0xc]
jbe 0x458013
push esi
push ebx
call fcn.00458990
mov edi, eax
add esp, 8
test edi, edi
je 0x45800d
push dword [ebp + 0x14]
mov eax, dword [ebx + 0x98]
push 0
push dword [ebp - 0xc]
cdq
push edx
push eax
call fcn.004a0ab0
push edx
push eax
push dword [ebx + 0x3c]
call fcn.00457dc0
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov edi, dword [ebx + 0x88]
test edi, edi
je 0x458041
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x88], eax
mov dword [edi + 0xc], 0
movzx eax, word [ebx + 0x8c]
push eax
push 0
push dword [edi + 8]
call fcn.004a2550
jmp 0x45807d
movzx eax, word [ebx + 0x8c]
cdq
add eax, 0x28
mov dword [ebp - 0x18], eax
adc edx, 0
push edx
push eax
call fcn.00457140
mov edi, eax
add esp, 8
test edi, edi
je 0x458090
push dword [ebp - 0x18]
push 0
push edi
call fcn.004a2550
lea eax, [edi + 0x28]
mov dword [edi + 0x18], 0x10040
mov dword [edi + 8], eax
mov dword [edi + 0x10], ebx
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [edi + 0x14], esi
mov dword [edi + 4], eax
inc dword [ebx + 0x78]
xor esi, esi
jmp 0x4580c2
mov eax, dword [ebp - 8]
mov esi, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x98]
push 0
push dword [ebp - 0xc]
cdq
push edx
mov dword [ebp - 0x18], edi
mov edi, dword [esi]
push eax
call fcn.004a0ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [ebp - 0x18]
add esp, 0x10
mov esi, 7
test edi, edi
je 0x4580d4
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x458335
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xcc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push edi
push dword [ecx + 0x28]
call dword [0x4da08c]
add esp, 0xc
test eax, eax
jne 0x458193
mov ecx, dword [ebx + 0xcc]
mov dword [ebp + 0xc], ecx
cmp byte [ecx + 0x1d], 2
je 0x45819d
mov eax, dword [ecx + 8]
test eax, eax
je 0x458134
nop dword [eax]
cmp word [eax + 0x1a], 0
jne 0x45812d
test byte [eax + 0x18], 4
je 0x458134
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x458120
mov dword [ecx + 8], eax
test eax, eax
jne 0x458152
mov eax, dword [ecx + 4]
test eax, eax
je 0x458170
cmp word [eax + 0x1a], 0
je 0x458152
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x458142
jmp 0x458170
push eax
push dword [ecx + 0x24]
mov eax, dword [ecx + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x45816d
cmp esi, 5
jne 0x458335
mov ecx, dword [ebp + 0xc]
push 2
push edi
push dword [ecx + 0x28]
call dword [0x4da08c]
xor esi, esi
add esp, 0xc
test eax, eax
mov ecx, 7
cmove esi, ecx
test esi, esi
jne 0x458335
mov edx, dword [ebx + 0xcc]
test eax, eax
jne 0x4581b0
mov eax, dword [ebp + 0x10]
mov esi, 7
mov dword [eax], 0
jmp 0x458335
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
jne 0x4581c7
push eax
push edi
push edx
call fcn.00438690
add esp, 0xc
mov ecx, eax
jmp 0x4581f1
movzx eax, word [ecx + 0x1a]
xor ebx, ebx
cmp bx, ax
mov dword [ebp + 0xc], eax
mov ebx, dword [ebp + 8]
jne 0x4581e1
inc dword [edx + 0xc]
movzx eax, word [ecx + 0x1a]
jmp 0x4581e4
mov eax, dword [ebp + 0xc]
inc eax
mov word [ecx + 0x1a], ax
cmp edi, 1
jne 0x4581f1
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
test ecx, ecx
jne 0x458202
lea esi, [ecx + 7]
jmp 0x458335
test esi, esi
jne 0x458335
mov esi, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], esi
cmp dword [esi + 0x10], 0
je 0x45822b
test ecx, ecx
jne 0x45822b
inc dword [ebx + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
cmp edi, 0x7fffffff
ja 0x45830c
mov eax, dword [0x4da118]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x45830c
cmp byte [ebx + 0xf], 0
jne 0x4582ac
cmp dword [ebx + 0x18], edi
jb 0x4582ac
test ecx, ecx
jne 0x4582ac
mov eax, dword [ebx + 0x3c]
cmp dword [eax], ecx
je 0x4582ac
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x45828f
cmp dword [ebp - 0x14], ecx
jne 0x45828f
lea ecx, [ebp - 4]
push ecx
push edi
push eax
call fcn.00474de0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45832a
mov esi, dword [ebp + 0xc]
push dword [ebp - 4]
inc dword [ebx + 0xbc]
push esi
call fcn.00438f70
mov esi, eax
add esp, 8
test esi, esi
je 0x458303
jmp 0x45832a
cmp edi, dword [ebx + 0x9c]
jbe 0x4582bb
mov esi, 0xd
jmp 0x45832a
test ecx, ecx
je 0x4582f0
mov eax, dword [0x4dc370]
test eax, eax
je 0x4582ca
call eax
cmp edi, dword [ebx + 0x1c]
ja 0x4582db
push edi
push dword [ebx + 0x38]
call fcn.00442350
add esp, 8
push edi
push ebx
call fcn.004199a0
mov eax, dword [0x4dc374]
add esp, 8
test eax, eax
je 0x4582f0
call eax
push dword [ebx + 0x98]
push 0
push dword [esi + 4]
call fcn.004a2550
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4c8db4
push 0xb499
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004190b0
add esp, 0x10
mov esi, 0xb
push dword [ebp + 0xc]
call fcn.0045a790
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x458350
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x458350
push ebx
call fcn.00435450
add esp, 4
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret