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

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
cmp byte [esi], 0
jne 0x45680c
movzx edx, word [esi + 0x46]
mov ecx, dword [esi + 0x74]
lea ebp, [edx + 1]
mov word [esi + 0x46], bp
cmp bp, word [ecx + 0x18]
jae 0x456808
xor eax, eax
cmp byte [ecx + 8], 0
jne 0x45681c
mov bl, byte [esi + 0x44]
cmp bl, 0x12
jg 0x4567e3
lea eax, [esi + 0x74]
movzx edx, bp
mov dword [esp], eax
mov eax, dword [ecx + 0x40]
movzx edi, byte [eax + edx*2]
movzx eax, byte [eax + edx*2 + 1]
movzx edx, word [ecx + 0x1a]
shl edi, 8
or eax, edi
and edx, eax
add edx, dword [ecx + 0x38]
nop
movsx edi, bl
mov edx, dword [edx]
mov ecx, dword [esi + 0x14]
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
mov word [esi + edi*2 + 0x48], bp
mov eax, dword [esi + 0x74]
movsx edi, byte [esi + 0x44]
bswap edx
mov dword [esi + edi*4 + 0x78], eax
mov word [esi + 0x46], 0
inc byte [esi + 0x44]
movzx eax, byte [esi + 2]
push eax
push esi
mov edi, dword [esp + 8]
push edi
call fcn.00460130
add esp, 0xc
test eax, eax
jne 0x45681c
mov ecx, dword [edi]
cmp byte [ecx + 8], 0
jne 0x45681a
movzx ebp, word [esi + 0x46]
mov edx, dword [ecx + 0x40]
movzx edi, word [ecx + 0x1a]
movzx ebx, byte [edx + ebp*2]
movzx edx, byte [edx + ebp*2 + 1]
shl ebx, 8
or edx, ebx
movzx ebx, byte [esi + 0x44]
and edx, edi
add edx, dword [ecx + 0x38]
cmp bl, 0x12
jle 0x456770
push 0x50d803
push 0x10f42
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov eax, 0xb
jmp 0x45681c
mov word [esi + 0x46], dx
mov ecx, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp 0x4617a0
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov al, byte [ecx]
mov esi, ecx
test al, al
je 0x4618c1
cmp al, 3
jb 0x4618a6
cmp al, 4
mov dword [esp + 8], 0
jne 0x4617d7
mov edi, dword [esi + 4]
test edi, edi
jne 0x461b69
jmp 0x4618c1
mov byte [esi], 1
mov eax, dword [0x51d29c]
test eax, eax
je 0x4617fa
push 0x19a
call eax
add esp, 4
mov edi, 0xa
test eax, eax
jne 0x461b69
mov edx, dword [esi + 0x10]
lea eax, [esp + 8]
mov ecx, esi
push eax
push 0
push dword [esi + 0x3c]
push dword [esi + 0x38]
call fcn.0045fc70
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x461b69
mov edi, dword [esi + 0x10]
test edi, edi
je 0x46187d
cmp dword [0x51d1a8], 0
je 0x461873
mov eax, dword [0x51e858]
test eax, eax
je 0x461841
push eax
call dword [0x51d1f8]
add esp, 4
push edi
call dword [0x51d1d4]
add esp, 4
sub dword [0x51e800], eax
dec dword [0x51e824]
push edi
call dword [0x51d1cc]
add esp, 4
mov eax, dword [0x51e858]
test eax, eax
je 0x46187d
push eax
call dword [0x51d200]
jmp 0x46187a
push edi
call dword [0x51d1cc]
add esp, 4
mov dword [esi + 0x10], 0
mov eax, dword [esp + 8]
test eax, eax
je 0x461891
mov dword [esi + 4], eax
jmp 0x461897
cmp dword [esi + 4], 0
je 0x4618a4
mov al, byte [esi]
test al, al
jne 0x4618a6
mov byte [esi], 2
mov al, 2
jmp 0x4618a6
mov al, byte [esi]
cmp al, 1
je 0x461a9a
cmp al, 2
jne 0x4618c1
mov byte [esi], 0
xor edi, edi
cmp dword [esi + 4], 0
jg 0x461b69
movzx eax, word [esi + 0x46]
mov ecx, dword [esi + 0x74]
inc eax
mov word [esi + 0x46], ax
cmp byte [ecx], 0
je 0x4619bd
cmp ax, word [ecx + 0x18]
mov dl, byte [ecx + 8]
lea ebp, [esi + 0x74]
mov dword [esp], ebp
jae 0x4619c9
xor edi, edi
test dl, dl
jne 0x461b69
mov bl, byte [esi + 0x44]
cmp bl, 0x12
jg 0x4619da
movzx edx, ax
mov ebp, dword [ecx + 0x40]
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
movzx edx, byte [ebp + edx*2]
shl edx, 8
mov dword [esp + 0xc], edx
mov edx, dword [esp + 4]
movzx ebp, byte [ebp + edx*2 + 1]
movzx edx, word [ecx + 0x1a]
add ebp, dword [esp + 0xc]
and edx, ebp
mov ebp, dword [esp]
add edx, dword [ecx + 0x38]
nop word cs:[eax + eax]
nop dword [eax]
movsx ebx, bl
mov edx, dword [edx]
mov ecx, dword [esi + 0x14]
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
mov word [esi + ebx*2 + 0x48], ax
mov eax, dword [esi + 0x74]
movsx ebx, byte [esi + 0x44]
bswap edx
mov dword [esi + ebx*4 + 0x78], eax
mov word [esi + 0x46], 0
inc byte [esi + 0x44]
movzx eax, byte [esi + 2]
push eax
push esi
push ebp
call fcn.00460130
add esp, 0xc
test eax, eax
jne 0x461b67
mov ecx, dword [ebp]
cmp byte [ecx + 8], 0
jne 0x461b69
movzx eax, word [esi + 0x46]
mov edx, dword [ecx + 0x40]
movzx ebx, word [ecx + 0x1a]
movzx ebp, byte [edx + eax*2]
movzx edx, byte [edx + eax*2 + 1]
shl ebp, 8
or edx, ebp
mov ebp, dword [esp]
and edx, ebx
movzx ebx, byte [esi + 0x44]
add edx, dword [ecx + 0x38]
cmp bl, 0x12
jle 0x461940
jmp 0x4619da
push 0x50d803
push 0x111c6
jmp 0x4619e4
test dl, dl
jne 0x461a26
movsx edi, byte [esi + 0x44]
cmp edi, 0x13
jl 0x461acb
push 0x50d803
push 0x10f42
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov edi, 0xb
jmp 0x461b69
call fcn.00442220
mov ecx, dword [esi + 0x74]
movzx eax, word [esi + 0x46]
cmp ax, word [ecx + 0x18]
jb 0x461ab1
movsx eax, byte [esi + 0x44]
test eax, eax
je 0x461aa4
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
movzx edx, word [esi + eax*2 + 0x46]
dec al
mov word [esi + 0x46], dx
mov byte [esi + 0x44], al
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x461a10
mov ebx, dword [ecx + 0x14]
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x88], ecx
mov edi, dword [ecx + 0x18]
mov ebp, dword [ebx + 0x98]
dec edi
mov eax, edi
mul ebp
sar ebp, 0x1f
imul ebp, edi
mov edi, dword [ebx + 0x3c]
add edx, ebp
mov ebx, dword [edi]
push dword [ecx + 4]
push edx
push eax
push edi
call dword [ebx + 0x48]
add esp, 0x10
jmp 0x461a15
mov edi, 0x65
jmp 0x461b69
mov byte [esi], 1
mov edi, 0x65
jmp 0x461b69
cmp byte [ecx + 2], 0
je 0x461b63
push 0
push esi
call fcn.00456700
add esp, 0x18
jmp 0x461b6e
mov edx, dword [ecx + 0x38]
movzx ecx, byte [ecx + 9]
mov edx, dword [edx + ecx + 8]
mov ecx, dword [esi + 0x14]
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
mov word [esi + edi*2 + 0x48], ax
bswap edx
mov eax, dword [esi + 0x74]
movsx edi, byte [esi + 0x44]
mov dword [esi + edi*4 + 0x78], eax
mov word [esi + 0x46], 0
inc byte [esi + 0x44]
movzx eax, byte [esi + 2]
push eax
push esi
push ebp
call fcn.00460130
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x461b69
mov ecx, dword [ebp]
cmp byte [ecx + 8], 0
jne 0x461b63
movsx eax, byte [esi + 0x44]
cmp eax, 0x13
jge 0x4619da
mov edi, dword [ecx + 0x40]
movzx ebx, word [esi + 0x46]
mov edx, dword [ecx + 0x38]
movzx ecx, word [ecx + 0x1a]
movzx ebp, byte [edi + ebx*2]
movzx edi, byte [edi + ebx*2 + 1]
shl ebp, 8
or edi, ebp
mov ebp, dword [esp]
and edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [edx + edi]
mov word [esi + 0x32], 0
and byte [esi + 1], 0xf9
mov word [esi + eax*2 + 0x48], bx
bswap edx
jmp 0x461aea
xor edi, edi
jmp 0x461b69
mov edi, eax
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret