Function at 0x42d170
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
mov dword [esp + 4], edx
mov ebx, ecx
mov ecx, dword [esp + 4]
mov edx, eax
push esi
push edi
xor esi, esi
and edx, 1
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
cmp ecx, 1
je 0x42d1b9
cmp byte [ebx + 0x16], 0
je 0x42d1b9
cmp byte [ebx + 0x10], 1
je 0x42d1af
test al, 2
je 0x42d1b9
mov dword [esp + 0x24], 1
jmp 0x42d1bd
mov dword [esp + 0x24], esi
test ecx, ecx
jne 0x42d1e6
push 0x52c134
push 0xb9f8
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00422230
add esp, 0x10
mov eax, 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 0x42d1f8
mov esi, eax
jmp 0x42d4da
cmp dword [esp + 0x24], esi
je 0x42d3b2
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x42d235
lea edx, [esp + 0x14]
push edx
mov edx, ecx
mov ecx, eax
call fcn.00430890
mov esi, eax
add esp, 4
test esi, esi
jne 0x42d630
cmp dword [esp + 0x14], edi
jne 0x42d3b2
mov ecx, dword [esp + 0xc]
mov eax, dword [ebx + 0x98]
lea edx, [esp + 0x10]
mov esi, dword [ebx + 0x3c]
dec ecx
push edx
push eax
push 0
cdq
push ecx
push edx
mov dword [esp + 0x24], edi
mov edi, dword [esi]
push eax
mov dword [esp + 0x40], ecx
call fcn.0049fb00
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 0x42d630
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x42d3b2
cmp byte [ebx + 0x10], 1
mov edi, dword [esp + 0xc]
jbe 0x42d2d7
mov edx, edi
mov ecx, ebx
call fcn.0042d660
mov dword [esp + 0x20], eax
test eax, eax
je 0x42d2cf
push dword [esp + 0x10]
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.0049fb00
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
jmp 0x42d394
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov esi, dword [ebx + 0x88]
mov dword [esp + 0x20], esi
test esi, esi
je 0x42d30c
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.004e7890
add esp, 0xc
jmp 0x42d385
movzx eax, word [ebx + 0x8c]
cdq
add eax, 0x28
mov dword [esp + 0x2c], eax
adc edx, 0
push edx
push eax
call fcn.0041fb40
mov esi, eax
add esp, 8
mov dword [esp + 0x20], esi
test esi, esi
je 0x42d345
push dword [esp + 0x2c]
push 0
push esi
call fcn.004e7890
add esp, 0xc
test esi, esi
jne 0x42d375
mov eax, dword [esp + 0x1c]
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.0049fb00
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov esi, 7
jmp 0x42d394
lea eax, [esi + 0x28]
mov dword [esi + 0x18], 0x10040
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov eax, dword [esp + 0x1c]
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 0x42d3aa
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 0x42d630
mov ecx, dword [ebx + 0xcc]
mov edi, dword [esp + 0xc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push edi
push dword [ecx + 0x28]
call dword [0x533f14]
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x42d48b
mov eax, dword [ebx + 0xcc]
mov dword [esp + 0x28], eax
cmp byte [eax + 0x1d], 2
je 0x42d478
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x42d40c
cmp word [ecx + 0x1a], 0
jne 0x42d405
test byte [ecx + 0x18], 8
je 0x42d40c
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x42d3f8
mov dword [eax + 8], ecx
test ecx, ecx
jne 0x42d430
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42d451
nop word [eax + eax]
cmp word [ecx + 0x1a], 0
je 0x42d430
mov ecx, dword [ecx + 0x24]
test ecx, ecx
jne 0x42d420
jmp 0x42d451
push ecx
push dword [eax + 0x24]
mov eax, dword [eax + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x42d44d
cmp esi, 5
je 0x42d44d
mov eax, dword [esp + 0x2c]
jmp 0x42d46c
mov eax, dword [esp + 0x28]
push 2
push edi
push dword [eax + 0x28]
call dword [0x533f14]
xor esi, esi
add esp, 0xc
test eax, eax
mov ecx, 7
cmove esi, ecx
test esi, esi
jne 0x42d630
test eax, eax
jne 0x42d48b
mov edi, dword [ebp + 8]
mov esi, 7
mov dword [edi], 0
jmp 0x42d633
mov edi, dword [eax + 4]
mov ecx, dword [ebx + 0xcc]
cmp dword [edi], 0
jne 0x42d4aa
mov edx, dword [esp + 0xc]
push eax
call fcn.00428510
add esp, 4
mov edi, eax
jmp 0x42d4cd
movzx eax, word [edi + 0x1a]
mov dword [esp + 0x2c], 0
mov edx, eax
cmp word [esp + 0x2c], ax
jne 0x42d4c6
inc dword [ecx + 0xc]
movzx edx, word [edi + 0x1a]
lea eax, [edx + 1]
mov word [edi + 0x1a], ax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [eax], edi
test esi, esi
jne 0x42d630
cmp dword [edi + 0x10], esi
je 0x42d4fa
test edx, edx
jne 0x42d4fa
inc dword [ebx + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], ebx
cmp ecx, 0x7fffffff
ja 0x42d5ea
mov eax, dword [0x534bac]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp ecx, eax
je 0x42d5ea
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x18]
jne 0x42d57f
cmp dword [ebx + 0x18], ecx
jb 0x42d57f
test edx, edx
jne 0x42d57f
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x42d57f
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x42d563
cmp dword [esp + 0x24], edx
jne 0x42d563
lea edx, [esp + 0x14]
push edx
mov edx, ecx
mov ecx, eax
call fcn.00430890
mov esi, eax
add esp, 4
test esi, esi
jne 0x42d608
mov edx, dword [esp + 0x14]
mov ecx, edi
inc dword [ebx + 0xbc]
call fcn.0042b670
mov esi, eax
test esi, esi
je 0x42d5e1
jmp 0x42d608
cmp ecx, dword [ebx + 0x9c]
jbe 0x42d58e
mov esi, 0xd
jmp 0x42d608
test edx, edx
je 0x42d5ce
mov eax, dword [0x536ff8]
test eax, eax
je 0x42d5a1
call eax
mov ecx, dword [esp + 0xc]
cmp ecx, dword [ebx + 0x1c]
ja 0x42d5ba
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x42d5ba
mov edx, ecx
mov ecx, eax
call fcn.00427ea0
mov ecx, dword [esp + 0xc]
mov edx, ecx
mov ecx, ebx
call fcn.0042a580
mov eax, dword [0x536ffc]
test eax, eax
je 0x42d5ce
call eax
push dword [ebx + 0x98]
push 0
push dword [edi + 4]
call fcn.004e7890
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x52c134
push 0xba4d
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00422230
add esp, 0x10
mov esi, 0xb
test byte [edi + 0x18], 2
je 0x42d617
mov dl, 1
mov ecx, edi
call fcn.004283e0
mov eax, dword [edi + 0x1c]
push 1
dec dword [eax + 0xc]
mov eax, dword [edi + 0x1c]
push dword [edi]
push dword [eax + 0x28]
call dword [0x533f18]
add esp, 0xc
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x78], 0
jne 0x42d64c
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x42d64c
mov ecx, ebx
call fcn.0042abc0
mov dword [edi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret