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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x513040]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, ecx
mov byte [esp + 0x13], dl
mov dword [esp + 0x20], edi
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 0x45266e
cmp al, 3
jb 0x4526be
call fcn.00447ae0
test eax, eax
jne 0x452c1b
cmp byte [edi], al
jne 0x452c1b
mov ebx, dword [edi + 0x74]
movsx eax, byte [edi + 0x44]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x2c], eax
movzx eax, word [ebx + 0x18]
mov dword [esp + 0x24], ecx
cmp eax, ecx
ja 0x4526f3
push 0x504dd4
push 0x139df
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
push 0x504dd4
push 0x139d6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f5edb
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 esi, cx
and esi, eax
add esi, dword [ebx + 0x38]
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x1c], esi
jge 0x452754
mov ecx, ebx
call fcn.00449040
test eax, eax
je 0x452754
push 0x504dd4
push 0x139e3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0x18]
add eax, dword [ebx + 0x40]
cmp esi, eax
jae 0x452794
push 0x504dd4
push 0x139e6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x13]
shr al, 1
and al, 1
mov byte [esp + 0x13], al
je 0x4527f0
cmp byte [ebx + 8], 0
je 0x4527e1
mov eax, dword [ebx + 0x4c]
push esi
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 8
movzx esi, ax
mov eax, 0xaaaaaaab
mov ecx, dword [ecx + 0x28]
add ecx, ecx
mul ecx
mov eax, dword [ebx + 0x14]
add eax, 2
shr edx, 1
add eax, esi
cmp eax, edx
jg 0x4527e1
cmp word [ebx + 0x18], 1
je 0x4527e1
mov byte [esp + 0x13], 2
jmp 0x4527f0
mov ecx, edi
call fcn.00447780
test eax, eax
jne 0x452c1b
cmp byte [ebx + 8], 0
jne 0x45282e
and byte [edi + 1], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x45281f
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x45281f
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x45281f
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x45282e
mov ecx, edi
call fcn.0044da30
test eax, eax
jne 0x452c1b
test byte [edi + 1], 0x20
je 0x452862
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0x40]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x45285e
cmp ecx, edi
je 0x452857
test edx, edx
je 0x4528d8
cmp dword [ecx + 0x40], edx
je 0x4528d8
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x452842
and byte [edi + 1], 0xdf
cmp dword [edi + 0x70], 0
jne 0x4528b7
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb], 0
je 0x4528b7
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x40]
mov byte [eax + 0xb], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4528b7
mov edi, dword [esp + 0x14]
nop dword [eax]
test byte [eax + 1], 0x10
je 0x4528ac
mov byte [edi + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x4528ac
cmp dword [eax + 0x20], edx
jne 0x4528ac
cmp dword [eax + 0x24], esi
jne 0x4528ac
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x452890
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x452903
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x452903
cmp dword [edx + 0x68], 0
je 0x452930
call fcn.004406a0
jmp 0x452928
test ecx, ecx
je 0x45285e
push edi
call fcn.00447900
add esp, 4
test eax, eax
je 0x452862
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x452c1b
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x452923
call fcn.00442160
jmp 0x452928
call fcn.00441f30
test eax, eax
jne 0x452c1b
mov esi, dword [esp + 0x1c]
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 0x452961
lea eax, [esp + 0x30]
mov edx, esi
push eax
mov ecx, ebx
call fcn.0044e800
add esp, 4
jmp 0x452963
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.0044ed20
mov ecx, dword [esp + 0x1c]
add esp, 8
test ecx, ecx
jne 0x452c19
cmp byte [ebx + 8], cl
jne 0x452adb
mov esi, dword [edi + 0x74]
cmp dword [esi + 0x14], ecx
jge 0x4529ac
mov ecx, esi
call fcn.00449040
test eax, eax
jne 0x452c1b
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x2c]
dec eax
cmp ecx, eax
jge 0x4529bf
mov eax, dword [edi + ecx*4 + 0x7c]
jmp 0x4529c2
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [esi + 0x18]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [esp + 0x28], ecx
cmp ecx, eax
jae 0x452a27
push 0x504dd4
push 0x13a41
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00431e30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ecx
push esi
call eax
mov ecx, dword [esi + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x20], 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 0x452a64
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x452a64
cmp dword [edx + 0x68], 0
je 0x452a8d
call fcn.004406a0
jmp 0x452a85
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x452ab3
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x452a80
call fcn.00442160
jmp 0x452a85
call fcn.00441f30
mov dword [esp + 0x14], eax
test eax, eax
jne 0x452ab7
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, ebx
push dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, 4
push eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffffc
push eax
call fcn.0044ee40
add esp, 0x10
mov dword [esp + 0x14], eax
movzx edx, word [esi + 0x18]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
dec edx
mov ecx, esi
call fcn.0044ed20
mov ecx, dword [esp + 0x1c]
add esp, 8
test ecx, ecx
jne 0x452c19
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x28]
add eax, eax
cmp ecx, eax
jg 0x452af4
xor ecx, ecx
jmp 0x452b05
mov ecx, edi
call fcn.00451500
mov ecx, eax
test ecx, ecx
jne 0x452c19
movsx eax, byte [edi + 0x44]
mov esi, dword [esp + 0x2c]
cmp eax, esi
jle 0x452b6d
mov ecx, dword [edi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.00441c80
mov dl, byte [edi + 0x44]
dec dl
movsx eax, dl
mov byte [edi + 0x44], dl
cmp eax, esi
jle 0x452b52
nop dword [eax + eax]
movsx eax, dl
dec dl
mov ecx, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], dl
test ecx, ecx
je 0x452b48
mov ecx, dword [ecx + 0x48]
call fcn.00441c80
mov dl, byte [edi + 0x44]
movsx eax, dl
cmp eax, esi
jg 0x452b30
movsx eax, dl
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.00451500
mov ecx, eax
test ecx, ecx
jne 0x452c19
cmp byte [esp + 0x13], 1
jbe 0x452bc1
mov byte [edi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x24], eax
jb 0x452ba6
mov dword [edi + 4], 0xffffffff
mov ax, word [ebx + 0x18]
dec ax
mov word [edi + 0x46], ax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 1
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0044cd00
cmp byte [esp + 0x13], 0
mov ecx, eax
mov dword [esp + 0x28], ecx
je 0x452c11
mov al, byte [edi + 0x44]
test al, al
js 0x452c0e
xor esi, esi
test al, al
jle 0x452bfb
lea ebx, [edi + 0x78]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x48]
call fcn.00441c80
movsx eax, byte [edi + 0x44]
lea ebx, [ebx + 4]
inc esi
cmp esi, eax
jl 0x452be5
mov ecx, dword [edi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.00441c80
mov ecx, dword [esp + 0x28]
mov byte [edi + 0x44], 0xff
mov byte [edi], 3
xor eax, eax
cmp ecx, 0x10
cmove ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret