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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, eax
push esi
xor esi, esi
and ecx, 1
mov dword [esp + 4], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], ecx
cmp ebx, 1
je 0x42d19c
cmp byte [edi + 0x74], 0
je 0x42d19c
cmp byte [edi + 0x10], 1
je 0x42d192
test al, 2
je 0x42d19c
mov dword [esp + 0x10], 1
jmp 0x42d1a0
mov dword [esp + 0x10], esi
cmp ebx, esi
jne 0x42d1c7
push 0x4da09c
push 0xb3d8
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004226a0
add esp, 0x10
mov eax, 0xb
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x28]
cmp eax, esi
je 0x42d1d5
mov esi, eax
jmp 0x42d33b
cmp dword [esp + 0x10], esi
je 0x42d2cf
mov eax, dword [edi + 0xd0]
cmp eax, esi
je 0x42d20c
lea ecx, [esp + 0xc]
push ecx
push ebx
push eax
call fcn.004300e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42d47c
cmp dword [esp + 0xc], eax
jne 0x42d2cf
mov esi, dword [edi + 0x98]
xor ecx, ecx
push ecx
mov dword [esp + 0xc], ecx
mov eax, esi
cdq
lea ecx, [ebx - 1]
push ecx
push edx
push eax
call fcn.004ac9e0
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x20]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x42d47c
cmp dword [esp + 8], eax
je 0x42d2c7
cmp byte [edi + 0x10], 1
jbe 0x42d274
mov eax, ebx
mov ecx, edi
call fcn.0042d4b0
mov dword [esp + 4], eax
test eax, eax
jne 0x42d28d
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
mov esi, edi
call fcn.0042bf70
add esp, 0xc
mov esi, eax
jmp 0x42d2b3
mov eax, dword [edi + 0x98]
xor ecx, ecx
push ecx
cdq
lea ecx, [ebx - 1]
push ecx
push edx
push eax
call fcn.004ac9e0
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [edi + 0x3c]
call fcn.0041fc30
add esp, 8
mov eax, dword [esp + 4]
test eax, eax
je 0x42d2c7
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x42d46f
mov ecx, dword [edi + 0xcc]
movzx eax, byte [ecx + 0x1d]
mov edx, dword [ecx + 0x28]
and eax, 3
push eax
push ebx
push edx
call dword [0x4e72ec]
add esp, 0xc
mov dword [esp + 8], eax
test eax, eax
jne 0x42d315
mov esi, dword [edi + 0xcc]
lea eax, [esp + 8]
push eax
push ebx
call fcn.00428470
mov esi, eax
add esp, 8
test esi, esi
jne 0x42d46f
mov eax, dword [esp + 8]
mov ecx, dword [edi + 0xcc]
push eax
push ebx
push ecx
call fcn.00428550
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [edx], eax
test eax, eax
jne 0x42d337
lea esi, [eax + 7]
jmp 0x42d47c
mov ecx, dword [esp + 0x14]
test esi, esi
jne 0x42d47c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax + 0x10], esi
je 0x42d35e
test ecx, ecx
jne 0x42d35e
inc dword [edi + 0xb8]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], eax
mov dword [eax + 0x10], edi
cmp ebx, 0x7fffffff
ja 0x42d451
mov eax, dword [0x4e7378]
cdq
idiv dword [edi + 0x98]
inc eax
cmp ebx, eax
je 0x42d451
cmp byte [edi + 0xf], 0
jne 0x42d3e7
cmp dword [edi + 0x18], ebx
jb 0x42d3e7
test ecx, ecx
jne 0x42d3e7
mov edx, dword [edi + 0x3c]
cmp dword [edx], ecx
je 0x42d3e7
mov eax, dword [edi + 0xd0]
test eax, eax
je 0x42d3c5
cmp dword [esp + 0x10], ecx
jne 0x42d3c5
lea ecx, [esp + 0xc]
push ecx
push ebx
push eax
call fcn.004300e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42d46f
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
inc dword [edi + 0xbc]
push edx
call fcn.0042b470
mov esi, eax
add esp, 4
test esi, esi
je 0x42d44a
jmp 0x42d46f
cmp ebx, dword [edi + 0x9c]
jbe 0x42d3f6
mov esi, 0xd
jmp 0x42d46f
test ecx, ecx
je 0x42d431
mov eax, dword [0x4ec9dc]
test eax, eax
je 0x42d405
call eax
cmp ebx, dword [edi + 0x1c]
ja 0x42d41b
mov eax, dword [edi + 0x38]
test eax, eax
je 0x42d41b
push ebx
push eax
call fcn.00427da0
add esp, 8
push ebx
mov esi, edi
call fcn.0042a5a0
mov eax, dword [0x4ec9e0]
add esp, 4
test eax, eax
je 0x42d431
call eax
mov eax, dword [edi + 0x98]
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 4]
push eax
push 0
push edx
call fcn.004aaf30
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x4da09c
push 0xb427
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004226a0
add esp, 0x10
mov esi, 0xb
mov eax, dword [esp + 4]
test eax, eax
je 0x42d47c
call fcn.00428600
cmp dword [edi + 0x78], 0
jne 0x42d497
mov eax, dword [edi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x42d497
push edi
call fcn.0042a960
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [ecx], 0
pop esi
mov esp, ebp
pop ebp
ret