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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, edx
and eax, 1
xor esi, esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
cmp edi, 1
je 0x453462
cmp byte [ebx + 0x16], cl
je 0x453462
cmp byte [ebx + 0x10], 1
je 0x453458
test dl, 2
je 0x453462
mov dword [esp + 0x18], 1
jmp 0x453466
mov dword [esp + 0x18], ecx
test edi, edi
jne 0x45348c
push 0x69639c
push 0xb9f8
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00447800
add esp, 0x10
lea eax, [edi + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x28]
mov byte [ebx + 0x17], 1
test edx, edx
je 0x45349e
mov esi, edx
jmp 0x453634
cmp dword [esp + 0x18], ecx
je 0x4535a2
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x4534d5
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
call fcn.00456980
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45379e
cmp dword [esp + 0x14], eax
jne 0x4535a2
mov esi, dword [ebx + 0x98]
xor ecx, ecx
push ecx
mov dword [esp + 0x14], ecx
mov eax, esi
cdq
lea ecx, [edi - 1]
push ecx
push edx
push eax
call fcn.005df910
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x45379e
cmp dword [esp + 0x10], eax
je 0x4535a2
cmp byte [ebx + 0x10], 1
jbe 0x45353b
mov eax, ebx
call fcn.004537d0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x453554
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push edi
mov esi, ebx
call fcn.00452270
add esp, 0xc
mov esi, eax
jmp 0x453585
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x3c]
mov edi, dword [eax]
mov eax, dword [ebx + 0x98]
push ecx
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
cdq
dec ecx
push ecx
push edx
push eax
call fcn.005df910
push edx
mov edx, dword [edi + 0x48]
push eax
mov eax, dword [ebx + 0x3c]
push eax
call edx
mov edi, dword [ebp + 8]
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45359a
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x45379e
mov ecx, dword [ebx + 0xcc]
movzx eax, byte [ecx + 0x1d]
mov edx, dword [ecx + 0x28]
and eax, 3
push eax
push edi
push edx
call dword [0x6c53b4]
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4535f9
mov esi, dword [ebx + 0xcc]
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0044df60
mov esi, eax
add esp, 8
test esi, esi
jne 0x45379e
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4535f9
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea esi, [eax + 7]
jmp 0x45379e
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
mov edx, dword [ebx + 0xcc]
jne 0x453614
push eax
push edi
push edx
call fcn.0044dff0
add esp, 0xc
jmp 0x453625
xor eax, eax
cmp ax, word [ecx + 0x1a]
jne 0x45361f
inc dword [edx + 0xc]
inc word [ecx + 0x1a]
mov eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [esp + 0xc], eax
mov ecx, eax
mov eax, dword [esp + 0x1c]
test esi, esi
jne 0x45379e
cmp dword [ecx + 0x10], esi
je 0x453651
test eax, eax
jne 0x453651
inc dword [ebx + 0xb8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x10], ebx
cmp edi, 0x7fffffff
ja 0x45374b
mov eax, dword [0x6c5440]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x45374b
cmp byte [ebx + 0xf], 0
jne 0x4536db
cmp dword [ebx + 0x18], edi
jb 0x4536db
cmp dword [esp + 0x1c], 0
jne 0x4536db
mov edx, dword [ebx + 0x3c]
cmp dword [edx], 0
je 0x4536db
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x4536bd
cmp dword [esp + 0x18], 0
jne 0x4536bd
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
call fcn.00456980
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45376d
inc dword [ebx + 0xbc]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00451470
mov esi, eax
add esp, 4
test esi, esi
je 0x453743
jmp 0x453769
cmp edi, dword [ebx + 0x9c]
jbe 0x4536ed
mov esi, 0xd
jmp 0x45376d
cmp dword [esp + 0x1c], 0
je 0x45372e
mov eax, dword [0x6ce778]
test eax, eax
je 0x4536ff
call eax
cmp edi, dword [ebx + 0x1c]
ja 0x453715
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x453715
push edi
push eax
call fcn.0044d7e0
add esp, 8
push edi
push ebx
call fcn.004501f0
mov eax, dword [0x6ce77c]
add esp, 8
test eax, eax
je 0x45372a
call eax
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 0x98]
mov eax, dword [ecx + 4]
push edx
push 0
push eax
call fcn.005de050
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x69639c
push 0xba4d
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00447800
add esp, 0x10
mov esi, 0xb
mov ecx, dword [esp + 0xc]
test byte [ecx + 0x18], 2
je 0x453783
push 1
mov eax, ecx
call fcn.0044ddc0
mov ecx, dword [esp + 0x10]
add esp, 4
mov eax, dword [ecx + 0x1c]
dec dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + 0x28]
push 1
push edx
push ecx
call dword [0x6c53b8]
add esp, 0xc
cmp dword [ebx + 0x78], 0
jne 0x4537b9
mov edx, dword [ebx + 0xcc]
cmp dword [edx + 0xc], 0
jne 0x4537b9
push ebx
call fcn.00450800
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret