Function at 0x422a60
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, ecx
xor esi, esi
mov ecx, eax
and ecx, 1
cmp edi, 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ecx
je 0x422aa3
cmp byte [ebx + 0x16], 0
je 0x422aa3
cmp byte [ebx + 0x10], 1
je 0x422a99
test al, 2
je 0x422aa3
mov dword [esp + 0x20], 1
jmp 0x422aa7
mov dword [esp + 0x20], esi
cmp edi, esi
jne 0x422ad2
push 0x47735c
push 0xba4c
push str.database_corruption_at_line__d_of___.10s_
mov ecx, 0xb
call fcn.0041f550
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
cmp eax, esi
mov byte [ebx + 0x17], 1
je 0x422ae6
mov dword [esp + 0xc], eax
jmp 0x422c88
cmp dword [esp + 0x20], esi
je 0x422bee
mov eax, dword [ebx + 0xd0]
cmp eax, esi
je 0x422b1f
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
call fcn.00422790
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], eax
jne 0x422ddb
cmp dword [esp + 0x1c], esi
jne 0x422bee
xor ecx, ecx
push ecx
mov dword [esp + 0x1c], esi
mov esi, dword [ebx + 0x98]
mov eax, esi
cdq
lea ecx, [edi - 1]
push ecx
push edx
push eax
call fcn.0046e8a0
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
add esp, 0x14
test eax, eax
mov dword [esp + 0xc], eax
jne 0x422ddb
cmp dword [esp + 0x18], eax
je 0x422be3
cmp byte [ebx + 0x10], 1
jbe 0x422b89
mov esi, ebx
call fcn.0040bd40
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x422ba8
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
push edi
mov esi, ebx
call fcn.00411190
mov esi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x422bce
mov eax, dword [ebx + 0x98]
xor ecx, ecx
push ecx
cdq
lea ecx, [edi - 1]
push ecx
push edx
push eax
call fcn.0046e8a0
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.004067a0
add esp, 8
test esi, esi
je 0x422be3
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 0
jne 0x422da5
mov eax, dword [ebx + 0xcc]
movzx ecx, byte [eax + 0x1d]
mov eax, dword [eax + 0x28]
and ecx, 3
push ecx
push edi
push eax
call dword [0x47a08c]
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
jne 0x422c4c
mov esi, dword [ebx + 0xcc]
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00405380
add esp, 8
test eax, eax
mov dword [esp + 0xc], eax
jne 0x422da5
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x422c4c
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [esp + 0xc], 7
jmp 0x422ddb
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
mov edx, dword [ebx + 0xcc]
jne 0x422c67
push eax
push edi
push edx
call fcn.004052f0
add esp, 0xc
jmp 0x422c79
cmp word [ecx + 0x1a], 0
jne 0x422c72
add dword [edx + 0xc], 1
add word [ecx + 0x1a], 1
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov esi, eax
cmp dword [esp + 0xc], 0
jne 0x422ddb
cmp dword [esi + 0x10], 0
je 0x422cac
test ecx, ecx
jne 0x422cac
add dword [ebx + 0xb8], 1
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0x7fffffff
mov dword [esi + 0x10], ebx
ja 0x422d7f
mov eax, 0x40000000
cdq
idiv dword [ebx + 0x98]
add eax, 1
cmp edi, eax
je 0x422d7f
cmp dword [ebx + 0x18], edi
jb 0x422d2b
test ecx, ecx
jne 0x422d2b
mov edx, dword [ebx + 0x3c]
cmp dword [edx], ecx
je 0x422d2b
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x422d0d
cmp dword [esp + 0x20], ecx
jne 0x422d0d
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
call fcn.00422790
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], eax
jne 0x422da9
mov ecx, dword [esp + 0x1c]
add dword [ebx + 0xbc], 1
push esi
call fcn.00408f00
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
je 0x422d77
jmp 0x422da9
cmp edi, dword [ebx + 0x9c]
jbe 0x422d3d
mov dword [esp + 0xc], 0xd
jmp 0x422da9
test ecx, ecx
je 0x422d62
cmp edi, dword [ebx + 0x1c]
ja 0x422d53
mov edx, dword [ebx + 0x38]
push edi
push edx
call fcn.00413e20
add esp, 8
push edi
mov esi, ebx
call fcn.00414fc0
mov esi, dword [esp + 0x18]
add esp, 4
mov eax, dword [ebx + 0x98]
mov ecx, dword [esi + 4]
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x47735c
push 0xbaa1
push str.database_corruption_at_line__d_of___.10s_
mov ecx, 0xb
call fcn.0041f550
add esp, 0xc
mov dword [esp + 0xc], 0xb
jmp 0x422da9
mov esi, dword [esp + 0x14]
test esi, esi
je 0x422ddb
test byte [esi + 0x18], 2
je 0x422dbf
push 1
mov eax, esi
call fcn.00405490
add esp, 4
mov eax, dword [esi + 0x1c]
add dword [eax + 0xc], 0xffffffff
mov edx, dword [esi]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x28]
push 1
push edx
push ecx
call dword [0x47a090]
add esp, 0xc
cmp dword [ebx + 0x78], 0
jne 0x422df6
mov edx, dword [ebx + 0xcc]
cmp dword [edx + 0xc], 0
jne 0x422df6
push ebx
call fcn.004353d0
add esp, 4
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 0
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret