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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov byte [esp + 0x12], dl
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov al, byte [edi]
test al, al
je 0x45b501
cmp al, 3
jb 0x45b54a
call fcn.00451120
mov esi, eax
test esi, esi
jne 0x45ba34
cmp byte [edi], al
jne 0x45ba34
mov ebx, dword [edi + 0x74]
movsx eax, byte [edi + 0x44]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x20], eax
movzx eax, word [ebx + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ebx
cmp eax, ecx
ja 0x45b574
push 0x5cad1c
push 0x12f16
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5cad1c
push 0x12f0d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x28], ecx
jge 0x45b5ce
mov ecx, ebx
call fcn.00452330
test eax, eax
je 0x45b5ca
push 0x5cad1c
push 0x12f1a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x12]
shr al, 1
and al, 1
mov byte [esp + 0x12], al
je 0x45b62c
cmp byte [ebx + 8], 0
je 0x45b61b
mov eax, dword [ebx + 0x4c]
push ecx
push ebx
call eax
movzx esi, ax
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x28]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
mov eax, dword [ebx + 0x14]
add eax, 2
shr edx, 1
add eax, esi
cmp eax, edx
jg 0x45b61b
cmp word [ebx + 0x18], 1
je 0x45b61b
mov byte [esp + 0x12], 2
jmp 0x45b62c
mov ecx, edi
call fcn.00450dc0
mov esi, eax
test esi, esi
jne 0x45ba34
cmp byte [ebx + 8], 0
lea esi, [edi + 1]
jne 0x45b66c
and byte [esi], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x45b65d
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x45b65d
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x45b65d
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x45b66c
mov ecx, edi
call fcn.00456c80
test eax, eax
jne 0x45ba36
test byte [esi], 0x20
lea eax, [edi + 0x40]
je 0x45b6b2
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x45b695
cmp ecx, edi
je 0x45b68e
test edx, edx
je 0x45b69a
cmp dword [ecx + 0x40], edx
je 0x45b69a
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x45b681
and byte [esi], 0xdf
jmp 0x45b6b2
test ecx, ecx
je 0x45b695
push edi
call fcn.00450f40
add esp, 4
test eax, eax
jne 0x45ba36
lea eax, [edi + 0x40]
cmp dword [edi + 0x70], 0
jne 0x45b707
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0xb], 0
je 0x45b707
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov byte [eax + 0xb], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x45b707
mov ebx, dword [esp + 0x14]
test byte [eax + 1], 0x10
je 0x45b6fc
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x45b6fc
cmp dword [eax + 0x20], edx
jne 0x45b6fc
cmp dword [eax + 0x24], esi
jne 0x45b6fc
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x45b6e0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x45b728
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x45b728
cmp dword [edx + 0x68], 0
je 0x45b755
call fcn.0044af80
jmp 0x45b74d
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x45ba36
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x45b748
call fcn.0044cab0
jmp 0x45b74d
call fcn.0044ca30
test eax, eax
jne 0x45ba36
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0x50]
push esi
push ebx
call eax
movzx eax, word [esp + 0x4c]
add esp, 0xc
cmp eax, dword [esp + 0x3c]
je 0x45b786
lea eax, [esp + 0x30]
mov edx, esi
push eax
mov ecx, ebx
call fcn.00457980
add esp, 4
jmp 0x45b788
xor eax, eax
mov edx, dword [esp + 0x24]
mov ecx, ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.00457ea0
mov esi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jne 0x45ba34
cmp byte [ebx + 8], 0
jne 0x45b907
mov ebx, dword [edi + 0x74]
cmp dword [ebx + 0x14], esi
jge 0x45b7d4
mov ecx, ebx
call fcn.00452330
mov esi, eax
test esi, esi
jne 0x45ba34
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x20]
dec eax
cmp ecx, eax
jge 0x45b7e7
mov eax, dword [edi + ecx*4 + 0x7c]
jmp 0x45b7ea
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [ebx + 0x18]
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx esi, cx
and esi, eax
lea eax, [edx + 4]
add esi, edx
cmp esi, eax
jae 0x45b840
push 0x5cad1c
push 0x12f75
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x4c]
push esi
push ebx
call eax
mov ecx, dword [ebx + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x18], eax
je 0x45b887
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x45b887
cmp dword [edx + 0x68], 0
je 0x45b87d
call fcn.0044af80
jmp 0x45b8ae
mov dword [esp + 0x14], 0
jmp 0x45b8b6
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x45b894
mov dword [esp + 0x14], eax
jmp 0x45b8df
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x45b8a9
call fcn.0044cab0
jmp 0x45b8ae
call fcn.0044ca30
mov dword [esp + 0x14], eax
test eax, eax
jne 0x45b8df
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push dword [esp + 0x20]
add eax, 4
push eax
lea eax, [esi - 4]
push eax
call fcn.00457fc0
add esp, 0x14
movzx edx, word [ebx + 0x18]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x30]
dec edx
mov ecx, ebx
call fcn.00457ea0
mov esi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jne 0x45ba34
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x28]
mov eax, dword [edi + 0x74]
add ecx, ecx
mov eax, dword [eax + 0x14]
lea eax, [eax + eax*2]
cmp eax, ecx
jg 0x45b920
xor esi, esi
jmp 0x45b931
mov ecx, edi
call fcn.0045a4c0
mov esi, eax
test esi, esi
jne 0x45ba34
movsx eax, byte [edi + 0x44]
cmp eax, dword [esp + 0x20]
jle 0x45b995
mov ecx, dword [edi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.0044c510
mov dl, byte [edi + 0x44]
mov esi, dword [esp + 0x20]
dec dl
movsx eax, dl
mov byte [edi + 0x44], dl
cmp eax, esi
jle 0x45b982
nop dword [eax]
movsx eax, dl
dec dl
mov ecx, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], dl
test ecx, ecx
je 0x45b978
mov ecx, dword [ecx + 0x48]
call fcn.0044c510
mov dl, byte [edi + 0x44]
movsx eax, dl
cmp eax, esi
jg 0x45b960
movsx eax, dl
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.0045a4c0
mov esi, eax
test esi, esi
jne 0x45ba34
cmp byte [esp + 0x12], 1
jbe 0x45b9db
mov byte [edi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x24], eax
jb 0x45b9cb
mov dword [edi + 4], 0xffffffff
mov ax, word [ebx + 0x18]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00455ee0
cmp byte [esp + 0x12], 0
mov esi, eax
mov dword [esp + 0x2c], esi
je 0x45ba2c
mov al, byte [edi + 0x44]
test al, al
js 0x45ba29
xor ebx, ebx
test al, al
jle 0x45ba1a
lea esi, [edi + 0x78]
nop
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x48]
call fcn.0044c510
movsx eax, byte [edi + 0x44]
lea esi, [esi + 4]
inc ebx
cmp ebx, eax
jl 0x45ba00
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.0044c510
mov byte [edi + 0x44], 0xff
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret