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

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
xor ebp, ebp
push esi
mov eax, dword [ebx + 0x14]
push edi
mov ecx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
mov ecx, edx
shr ecx, 1
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov esi, dword [ebx + 0x74]
cmp dword [esi + 0x14], 0
jge 0x451e6e
push esi
call fcn.00453e90
add esp, 4
test eax, eax
jne 0x45209a
mov ecx, dword [esp + 0x14]
mov al, byte [esi + 0xc]
test al, al
jne 0x451e7e
cmp dword [esi + 0x14], ecx
jle 0x45209a
movsx edx, byte [ebx + 0x44]
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x451eeb
test al, al
je 0x45209a
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x451ebc
lea esp, [esp]
cmp eax, ebx
je 0x451eb5
cmp byte [eax], 0
jne 0x451eb5
mov ecx, dword [eax + 0x74]
cmp ecx, dword [ebx + 0x74]
je 0x452077
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x451ea0
lea edi, [ebx + 0x7c]
push edi
push esi
call fcn.004520c0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x45209a
mov ecx, dword [esp + 0x14]
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x46], eax
mov eax, dword [edi]
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x74], eax
jmp 0x451e50
mov ecx, dword [ebx + edx*4 + 0x74]
movzx eax, word [ebx + edx*2 + 0x46]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], eax
mov edi, dword [ecx + 0x48]
test byte [edi + 0x1c], 4
mov edx, dword [edi + 0x14]
je 0x451f2f
mov eax, dword [edx + 0x18]
cmp eax, dword [edi + 0x18]
jb 0x451f2f
cmp dword [edx + 0x60], 0
je 0x451f66
push edi
call fcn.004ce080
add esp, 4
test eax, eax
je 0x451f2b
push edi
call fcn.004ce170
jmp 0x451f55
xor ebp, ebp
jmp 0x451f5a
mov ebp, dword [edx + 0x28]
test ebp, ebp
jne 0x452007
mov eax, dword [edx + 0x94]
push edi
cmp eax, dword [edx + 0x98]
jbe 0x451f50
call fcn.0047cda0
jmp 0x451f55
call fcn.0047e060
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x452007
cmp dword [ecx + 0x14], 0
jge 0x451f83
push ecx
call fcn.00453e90
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x452007
mov ecx, dword [esp + 0x10]
cmp byte [esi + 3], 0
je 0x451fbe
cmp byte [esi + 0xc], 1
jne 0x451fbe
mov ax, word [esi + 0x1c]
cmp ax, word [esi + 0x18]
jne 0x451fbe
cmp dword [ecx + 4], 1
mov ebp, dword [esp + 0x34]
je 0x451fc2
movzx eax, word [ecx + 0x18]
cmp eax, ebp
jne 0x451fc2
lea eax, [esp + 0x20]
push eax
push esi
push ecx
call fcn.00453690
add esp, 0xc
mov ebp, eax
jmp 0x452007
mov ebp, dword [esp + 0x34]
mov eax, dword [ebx + 0x14]
push dword [eax + 0x20]
call fcn.0047f150
movzx ecx, byte [ebx + 3]
mov edi, eax
and ecx, 1
push ecx
xor ecx, ecx
cmp dword [esp + 0x24], 1
sete cl
push ecx
push edi
push ebp
push dword [esp + 0x24]
call fcn.004521d0
mov ebp, eax
add esp, 0x18
mov eax, dword [esp + 0x18]
test eax, eax
je 0x452003
push eax
call fcn.0047f580
add esp, 4
mov dword [esp + 0x18], edi
mov edx, dword [esi + 0x48]
mov byte [esi + 0xc], 0
test byte [edx + 0x1c], 0x20
je 0x452053
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0040b170
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x45205c
push edx
call fcn.004ab270
add esp, 4
dec byte [ebx + 0x44]
movsx eax, byte [ebx + 0x44]
mov eax, dword [ebx + eax*4 + 0x78]
mov dword [ebx + 0x74], eax
test ebp, ebp
jne 0x45209a
mov ecx, dword [esp + 0x14]
jmp 0x451e50
push 0x4f48b4
push 0x11b1a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0044c270
add esp, 0x14
mov ebp, 0xb
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4520ab
push eax
call fcn.0047f580
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret