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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor ecx, ecx
mov dword [esp + 0x10], edi
mov edx, eax
mov dword [esp + 0xc], ecx
and edx, 1
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x1c], edx
cmp edi, 1
je 0x42c3ea
cmp byte [ebx + 0x16], cl
je 0x42c3ea
cmp byte [ebx + 0x10], 1
je 0x42c3e0
test al, 2
je 0x42c3ea
mov dword [esp + 0x24], 1
jmp 0x42c3ee
mov dword [esp + 0x24], ecx
test edi, edi
jne 0x42c415
push 0x527a9c
push 0xb9f8
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00421730
add esp, 0x10
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
mov byte [ebx + 0x17], 1
test eax, eax
je 0x42c427
mov esi, eax
jmp 0x42c6dd
cmp dword [esp + 0x24], ecx
je 0x42c5e9
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x42c45e
lea eax, [esp + 0x18]
mov edx, edi
push eax
call fcn.0042f520
mov esi, eax
add esp, 4
test esi, esi
jne 0x42c82d
cmp dword [esp + 0x18], eax
jne 0x42c5e9
mov eax, dword [ebx + 0x98]
lea edx, [esp + 0x14]
mov esi, dword [ebx + 0x3c]
lea ecx, [edi - 1]
push edx
push eax
push 0
cdq
push ecx
push edx
mov dword [esp + 0x28], 0
mov edi, dword [esi]
push eax
mov dword [esp + 0x40], ecx
call fcn.004dd120
push edx
push eax
mov eax, dword [edi + 0x44]
push esi
call eax
mov esi, eax
add esp, 0x14
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x42c82d
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
test eax, eax
je 0x42c5e9
cmp byte [ebx + 0x10], 1
jbe 0x42c50a
mov edx, edi
mov ecx, ebx
call fcn.0042c860
mov dword [esp + 0x20], eax
test eax, eax
je 0x42c502
push dword [esp + 0x14]
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
push 0
push dword [esp + 0x30]
cdq
mov edi, dword [esi]
push edx
push eax
call fcn.004dd120
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov edi, dword [esp + 0x10]
jmp 0x42c5cb
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov esi, dword [ebx + 0x88]
mov dword [esp + 0x20], esi
test esi, esi
je 0x42c53f
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x88], eax
mov dword [esi + 0xc], 0
movzx eax, word [ebx + 0x8c]
push eax
push 0
push dword [esi + 8]
call fcn.004df150
add esp, 0xc
jmp 0x42c5bc
movzx eax, word [ebx + 0x8c]
cdq
add eax, 0x28
mov dword [esp + 0x2c], eax
adc edx, 0
push edx
push eax
call fcn.0041efb0
mov esi, eax
add esp, 8
mov dword [esp + 0x20], esi
test esi, esi
je 0x42c578
push dword [esp + 0x2c]
push 0
push esi
call fcn.004df150
add esp, 0xc
test esi, esi
jne 0x42c5ac
mov eax, dword [esp + 0xc]
mov esi, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x98]
push 0
push dword [esp + 0x30]
mov edi, dword [esi]
cdq
push edx
push eax
call fcn.004dd120
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x20]
add esp, 0x10
mov esi, 7
jmp 0x42c5cb
lea eax, [esi + 0x28]
mov dword [esi + 0x18], 0x10040
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov eax, dword [esp + 0xc]
mov dword [esi + 0x14], edi
mov dword [esi + 4], eax
inc dword [ebx + 0x78]
xor esi, esi
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x42c5e1
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x42c82d
mov ecx, dword [ebx + 0xcc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push edi
push dword [ecx + 0x28]
call dword [0x52decc]
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x42c6bd
mov eax, dword [ebx + 0xcc]
mov dword [esp + 0x28], eax
cmp byte [eax + 0x1d], 2
je 0x42c6aa
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x42c644
nop dword [eax + eax]
cmp word [ecx + 0x1a], 0
jne 0x42c63d
test byte [ecx + 0x18], 8
je 0x42c644
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x42c630
mov dword [eax + 8], ecx
test ecx, ecx
jne 0x42c662
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42c683
cmp word [ecx + 0x1a], 0
je 0x42c662
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x42c652
jmp 0x42c683
push ecx
push dword [eax + 0x24]
mov eax, dword [eax + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x42c67f
cmp esi, 5
je 0x42c67f
mov eax, dword [esp + 0x2c]
jmp 0x42c69e
mov eax, dword [esp + 0x28]
push 2
push edi
push dword [eax + 0x28]
call dword [0x52decc]
xor esi, esi
add esp, 0xc
test eax, eax
mov ecx, 7
cmove esi, ecx
test esi, esi
jne 0x42c82d
test eax, eax
jne 0x42c6bd
mov edi, dword [ebp + 8]
mov esi, 7
mov dword [edi], 0
jmp 0x42c830
mov ecx, dword [ebx + 0xcc]
mov edx, edi
push eax
call fcn.004278c0
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x10], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test esi, esi
jne 0x42c82d
cmp dword [ecx + 0x10], esi
je 0x42c6fd
test edx, edx
jne 0x42c6fd
inc dword [ebx + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x10], ebx
cmp edi, 0x7fffffff
ja 0x42c7e5
mov eax, dword [0x52eb64]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x42c7e5
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x1c]
jne 0x42c784
cmp dword [ebx + 0x18], edi
jb 0x42c784
test edx, edx
jne 0x42c784
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x42c784
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x42c76a
cmp dword [esp + 0x24], edx
jne 0x42c76a
lea ecx, [esp + 0x18]
mov edx, edi
push ecx
mov ecx, eax
call fcn.0042f520
mov ecx, dword [esp + 0x10]
mov esi, eax
add esp, 4
test esi, esi
jne 0x42c807
mov edx, dword [esp + 0x18]
inc dword [ebx + 0xbc]
call fcn.0042a6f0
mov esi, eax
test esi, esi
je 0x42c7dc
jmp 0x42c803
cmp edi, dword [ebx + 0x9c]
jbe 0x42c793
mov esi, 0xd
jmp 0x42c807
test edx, edx
je 0x42c7c9
mov eax, dword [0x530cec]
test eax, eax
je 0x42c7a2
call eax
cmp edi, dword [ebx + 0x1c]
ja 0x42c7b1
mov ecx, dword [ebx + 0x38]
mov edx, edi
call fcn.004271c0
mov edx, edi
mov ecx, ebx
call fcn.004297c0
mov eax, dword [0x530cf0]
test eax, eax
je 0x42c7c5
call eax
mov ecx, dword [esp + 0xc]
push dword [ebx + 0x98]
push 0
push dword [ecx + 4]
call fcn.004df150
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x527a9c
push 0xba4d
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00421730
add esp, 0x10
mov esi, 0xb
mov ecx, dword [esp + 0xc]
test byte [ecx + 0x18], 2
je 0x42c814
mov dl, 1
call fcn.00427730
mov eax, dword [ecx + 0x1c]
push 1
dec dword [eax + 0xc]
mov eax, dword [ecx + 0x1c]
push dword [ecx]
push dword [eax + 0x28]
call dword [0x52ded0]
add esp, 0xc
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x78], 0
jne 0x42c849
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x42c849
mov ecx, ebx
call fcn.00429c50
mov dword [edi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret