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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov dword [esp + 0x20], edx
mov esi, ecx
mov edi, dword [ecx + 8]
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
movzx eax, byte [ecx]
test al, al
je 0x4655db
cmp al, 3
jb 0x46562a
mov ecx, esi
call fcn.00468b40
mov dword [esp + 0x10], eax
test eax, eax
jne 0x465659
xor eax, eax
cmp byte [esi], 0
jne 0x465659
movzx ebx, word [esi + 0x46]
mov ecx, dword [esi + 0x74]
cmp word [ecx + 0x18], bx
jbe 0x465636
mov eax, dword [ecx + 0x40]
movzx edx, byte [eax + ebx*2]
shl edx, 8
mov dword [esp + 0x1c], ebx
movzx ebx, byte [eax + ebx*2 + 1]
or ebx, edx
movzx eax, word [ecx + 0x1a]
and ebx, eax
movsx eax, byte [esi + 0x44]
mov dword [esp + 0x18], eax
add ebx, dword [ecx + 0x38]
cmp dword [ecx + 0x14], 0
mov dword [esp + 0xc], ecx
js 0x46571b
test byte [esp + 0x20], 2
jne 0x465661
xor eax, eax
jmp 0x4656bc
push 0x52b213
push 0x129ee
jmp 0x465640
push 0x52b213
push 0x129f7
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004287c0
add esp, 0x14
mov eax, 0xb
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [ecx + 8], 0
je 0x4656ab
mov eax, dword [ecx + 0x14]
mov dword [esp + 8], eax
push ebx
push ecx
mov eax, dword [esp + 0x14]
call dword [eax + 0x4c]
add esp, 8
mov ecx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
add eax, eax
mov edx, 0xaaaaaaab
mul edx
movzx eax, cx
mov ecx, dword [esp + 8]
add eax, ecx
add eax, 2
shr edx, 1
cmp eax, edx
mov ecx, dword [esp + 0xc]
jg 0x4656ab
mov al, 1
cmp word [ecx + 0x18], 1
jne 0x4656bc
mov ecx, esi
call fcn.004513e0
test eax, eax
jne 0x465659
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x74]
mov dword [esp + 8], eax
cmp byte [ecx + 8], 0
je 0x46573b
movzx eax, byte [esi + 1]
test al, 0x20
je 0x46576f
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x465762
mov edx, dword [esi + 0x40]
jmp 0x4656f7
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x465762
cmp ecx, esi
je 0x4656f0
test edx, edx
je 0x465704
cmp dword [ecx + 0x40], edx
jne 0x4656f0
push esi
call fcn.00451280
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x465659
jmp 0x46576f
call fcn.0046ae40
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x46561c
push 0x52b213
push 0x129fb
jmp 0x465640
and byte [esi + 1], 0xf1
mov word [esi + 0x32], 0
cmp byte [esi], 0
je 0x4657d5
mov ecx, esi
call fcn.0046aa30
test eax, eax
jne 0x465659
jmp 0x4656cd
and al, 0xdf
mov byte [esi + 1], al
mov dword [esp + 0x10], 0
cmp dword [esi + 0x70], 0
jne 0x465790
cmp byte [edi + 0xb], 0
je 0x465790
mov edx, dword [esi + 0x40]
mov ecx, edi
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.00469980
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x48]
mov edx, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x4657a8
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jae 0x4657c8
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x465659
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x4657fc
call fcn.004501e0
jmp 0x465801
cmp dword [edx + 0x68], 0
je 0x465809
call fcn.00446440
jmp 0x465801
movzx eax, word [esi + 0x46]
test ax, ax
je 0x46574e
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
cmp byte [ecx + 8], 0
je 0x46574e
dec eax
mov word [esi + 0x46], ax
jmp 0x4656cd
call fcn.004505c0
test eax, eax
jne 0x465659
lea eax, [esp + 0x30]
push eax
push ebx
mov edi, dword [esp + 0x14]
push edi
call dword [edi + 0x50]
add esp, 0xc
movzx ecx, word [esp + 0x40]
xor eax, eax
cmp dword [esp + 0x3c], ecx
je 0x465838
mov ecx, edi
mov edx, ebx
lea eax, [esp + 0x30]
push eax
call fcn.00469c40
add esp, 4
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x42]
lea ebx, [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x1c]
push ebx
push eax
call fcn.0046af70
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x465659
mov eax, dword [esp + 0xc]
cmp byte [eax + 8], 0
je 0x46596e
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 0x14]
lea ecx, [ecx + ecx*2]
mov eax, dword [eax + 0x28]
add eax, eax
cmp ecx, eax
jle 0x465893
mov ecx, esi
call fcn.0046b360
test eax, eax
jne 0x465659
mov eax, dword [esp + 0x18]
cmp byte [esi + 0x44], al
jle 0x465944
mov ecx, dword [esi + 0x74]
call fcn.00451cd0
movzx eax, byte [esi + 0x44]
dec al
mov byte [esi + 0x44], al
mov ebx, dword [esp + 0x18]
cmp al, bl
jg 0x4658c8
jmp 0x46592b
call fcn.00444500
movzx eax, byte [esi + 0x44]
cmp al, bl
jle 0x46592b
movsx ecx, al
dec al
mov byte [esi + 0x44], al
mov eax, dword [esi + ecx*4 + 0x78]
test eax, eax
je 0x4658c0
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x4658bb
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x80]
mov eax, dword [edx + 0x90]
mov dword [ecx + 0x10], eax
mov dword [edx + 0x90], ecx
mov edi, dword [edx + 0x40]
mov eax, dword [ecx + 0x18]
dec eax
mov ebx, dword [edx + 0xac]
imul ebx, eax
mul dword [edx + 0xa8]
add edx, ebx
mov ebx, dword [edi]
push dword [ecx + 4]
push edx
push eax
push edi
call dword [ebx + 0x48]
mov ebx, dword [esp + 0x28]
add esp, 0x10
movzx eax, byte [esi + 0x44]
cmp al, bl
jg 0x4658c8
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov ecx, esi
call fcn.0046b360
test eax, eax
jne 0x465659
cmp byte [esp + 0x2c], 0
je 0x4659c8
mov byte [esi], 2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
cmp cx, word [eax + 0x18]
jae 0x465a96
mov dword [esi + 4], 1
xor eax, eax
jmp 0x465659
mov eax, dword [esp + 8]
mov edi, dword [eax]
cmp dword [edi + 0x14], 0
js 0x465a82
movsx eax, byte [esi + 0x44]
dec eax
mov ecx, dword [esp + 0x18]
cmp eax, ecx
lea eax, [esi + ecx*4 + 0x7c]
mov ecx, dword [esp + 8]
cmovg ecx, eax
mov dword [esp + 8], ecx
mov eax, dword [edi + 0x40]
movzx ecx, word [edi + 0x18]
movzx edx, byte [eax + ecx*2 - 2]
movzx ebx, byte [eax + ecx*2 - 1]
shl edx, 8
or ebx, edx
movzx eax, word [edi + 0x1a]
and ebx, eax
cmp ebx, 3
ja 0x4659ef
push 0x52b213
push 0x12a56
jmp 0x465640
mov ecx, esi
call fcn.00468f20
mov edi, eax
test byte [esp + 0x20], 2
je 0x4659e2
mov ecx, esi
call fcn.00451300
mov byte [esi], 3
xor eax, eax
cmp edi, 0x10
cmovne eax, edi
jmp 0x465659
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
add ebx, dword [edi + 0x38]
push ebx
push edi
call dword [edi + 0x4c]
add esp, 8
movzx eax, ax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0x48]
call fcn.0042eff0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x465a59
add ebx, 0xfffffffc
mov eax, dword [esp + 8]
add eax, 4
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push dword [esp + 0x30]
push ebx
call fcn.0046b090
add esp, 0x14
movzx edx, word [edi + 0x18]
dec edx
mov ecx, edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0xc]
call fcn.0046af70
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x465659
jmp 0x46586f
mov ecx, edi
call fcn.0046ae40
test eax, eax
jne 0x465659
jmp 0x46597e
mov dword [esi + 4], 0xffffffff
mov eax, dword [eax + 0x18]
dec eax
mov word [esi + 0x46], ax
xor eax, eax
jmp 0x465659