Function at 0x42aad0
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 0x42ab13
cmp byte [ebx + 0x16], 0
je 0x42ab13
cmp byte [ebx + 0x10], 1
je 0x42ab09
test al, 2
je 0x42ab13
mov dword [esp + 0x20], 1
jmp 0x42ab17
mov dword [esp + 0x20], esi
cmp edi, esi
jne 0x42ab42
push 0x485634
push 0xba4c
push str.database_corruption_at_line__d_of___.10s_
mov ecx, 0xb
call fcn.004275c0
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 0x42ab56
mov dword [esp + 0xc], eax
jmp 0x42acf8
cmp dword [esp + 0x20], esi
je 0x42ac5e
mov eax, dword [ebx + 0xd0]
cmp eax, esi
je 0x42ab8f
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
call fcn.0042a800
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], eax
jne 0x42ae4b
cmp dword [esp + 0x1c], esi
jne 0x42ac5e
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.0047ad90
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 0x42ae4b
cmp dword [esp + 0x18], eax
je 0x42ac53
cmp byte [ebx + 0x10], 1
jbe 0x42abf9
mov esi, ebx
call fcn.00413c80
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x42ac18
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
push edi
mov esi, ebx
call fcn.004190d0
mov esi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x42ac3e
mov eax, dword [ebx + 0x98]
xor ecx, ecx
push ecx
cdq
lea ecx, [edi - 1]
push ecx
push edx
push eax
call fcn.0047ad90
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.0040e6e0
add esp, 8
test esi, esi
je 0x42ac53
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 0x42ae15
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 [0x48808c]
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
jne 0x42acbc
mov esi, dword [ebx + 0xcc]
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.0040d2f0
add esp, 8
test eax, eax
mov dword [esp + 0xc], eax
jne 0x42ae15
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42acbc
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [esp + 0xc], 7
jmp 0x42ae4b
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
mov edx, dword [ebx + 0xcc]
jne 0x42acd7
push eax
push edi
push edx
call fcn.0040d260
add esp, 0xc
jmp 0x42ace9
cmp word [ecx + 0x1a], 0
jne 0x42ace2
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 0x42ae4b
cmp dword [esi + 0x10], 0
je 0x42ad1c
test ecx, ecx
jne 0x42ad1c
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 0x42adef
mov eax, 0x40000000
cdq
idiv dword [ebx + 0x98]
add eax, 1
cmp edi, eax
je 0x42adef
cmp dword [ebx + 0x18], edi
jb 0x42ad9b
test ecx, ecx
jne 0x42ad9b
mov edx, dword [ebx + 0x3c]
cmp dword [edx], ecx
je 0x42ad9b
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x42ad7d
cmp dword [esp + 0x20], ecx
jne 0x42ad7d
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
call fcn.0042a800
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], eax
jne 0x42ae19
mov ecx, dword [esp + 0x1c]
add dword [ebx + 0xbc], 1
push esi
call fcn.00410e40
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
je 0x42ade7
jmp 0x42ae19
cmp edi, dword [ebx + 0x9c]
jbe 0x42adad
mov dword [esp + 0xc], 0xd
jmp 0x42ae19
test ecx, ecx
je 0x42add2
cmp edi, dword [ebx + 0x1c]
ja 0x42adc3
mov edx, dword [ebx + 0x38]
push edi
push edx
call fcn.0041bd60
add esp, 8
push edi
mov esi, ebx
call fcn.0041cf00
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 0x485634
push 0xbaa1
push str.database_corruption_at_line__d_of___.10s_
mov ecx, 0xb
call fcn.004275c0
add esp, 0xc
mov dword [esp + 0xc], 0xb
jmp 0x42ae19
mov esi, dword [esp + 0x14]
test esi, esi
je 0x42ae4b
test byte [esi + 0x18], 2
je 0x42ae2f
push 1
mov eax, esi
call fcn.0040d400
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 [0x488090]
add esp, 0xc
cmp dword [ebx + 0x78], 0
jne 0x42ae66
mov edx, dword [ebx + 0xcc]
cmp dword [edx + 0xc], 0
jne 0x42ae66
push ebx
call fcn.0043d440
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