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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov ecx, eax
push ebx
mov ebx, dword [esp + 0x18]
and ecx, 1
push ebp
mov ebp, dword [esp + 0x20]
push esi
xor esi, esi
mov dword [esp + 0x18], ecx
push edi
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
cmp ebp, 1
je 0x493334
cmp byte [ebx + 0x16], 0
je 0x493334
cmp byte [ebx + 0x10], 1
je 0x49332d
test al, 2
je 0x493334
mov edx, 1
jmp 0x493336
xor edx, edx
mov dword [esp + 0x18], edx
test ebp, ebp
jne 0x493362
push 0x4df4a4
push 0xba12
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
add esp, 0x10
lea eax, [ebp + 0xb]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + 0x28]
mov byte [ebx + 0x17], 1
test eax, eax
je 0x493374
mov edi, eax
jmp 0x4934f2
test edx, edx
je 0x493465
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x4933a9
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
call fcn.004af270
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49363a
cmp dword [esp + 0x10], esi
jne 0x493465
mov edi, dword [ebx + 0x98]
lea ecx, [ebp - 1]
push 0
mov eax, edi
mov dword [esp + 0x34], esi
cdq
push ecx
push edx
push eax
call fcn.004023b0
mov ecx, dword [ebx + 0x3c]
lea ebp, [esp + 0x30]
push ebp
mov esi, eax
push edi
mov eax, dword [ecx]
push edx
push esi
push ecx
mov eax, dword [eax + 0x44]
call eax
mov ebp, dword [esp + 0x3c]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x49363a
mov eax, dword [esp + 0x30]
test eax, eax
je 0x493465
cmp byte [ebx + 0x10], 1
jbe 0x493433
push ebp
push ebx
call fcn.00493d60
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x49342f
push dword [esp + 0x30]
mov eax, dword [ebx + 0x98]
lea ecx, [ebp - 1]
push 0
cdq
push ecx
push edx
push eax
call fcn.004023b0
push edx
push eax
push dword [ebx + 0x3c]
call fcn.00493110
jmp 0x493446
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
push eax
push ebp
push ebx
call fcn.0046b650
mov esi, dword [esp + 0x24]
mov edi, eax
add esp, 0x10
test esi, esi
je 0x49345d
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test edi, edi
jne 0x49363a
mov ecx, dword [ebx + 0xcc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push ebp
push dword [ecx + 0x28]
call dword [0x4e25ec]
add esp, 0xc
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4934bc
lea eax, [esp + 0x28]
push eax
push ebp
push dword [ebx + 0xcc]
call fcn.00495b60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49363a
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4934bc
mov esi, dword [esp + 0x2c]
lea edi, [eax + 7]
mov dword [esi], eax
jmp 0x49363e
mov esi, dword [eax + 4]
mov ecx, dword [ebx + 0xcc]
cmp dword [esi], 0
jne 0x4934d9
push eax
push ebp
push ecx
call fcn.0046f290
add esp, 0xc
mov esi, eax
jmp 0x4934e8
xor eax, eax
cmp ax, word [esi + 0x1a]
jne 0x4934e4
inc dword [ecx + 0xc]
inc word [esi + 0x1a]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov dword [eax], esi
test edi, edi
jne 0x49363a
cmp dword [esi + 0x10], edi
je 0x493513
test ecx, ecx
jne 0x493513
inc dword [ebx + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov dword [esi + 0x10], ebx
cmp ebp, 0x7fffffff
ja 0x4935f2
mov eax, dword [0x4e2564]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp ebp, eax
je 0x4935f2
cmp byte [ebx + 0xf], 0
jne 0x493591
cmp dword [ebx + 0x18], ebp
jb 0x493591
test ecx, ecx
jne 0x493591
mov eax, dword [ebx + 0x3c]
cmp dword [eax], ecx
je 0x493591
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x493576
cmp dword [esp + 0x18], ecx
jne 0x493576
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
call fcn.004af270
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x493610
push dword [esp + 0x10]
inc dword [ebx + 0xbc]
push esi
call fcn.004706e0
mov edi, eax
add esp, 8
test edi, edi
je 0x4935e8
jmp 0x493610
cmp ebp, dword [ebx + 0x9c]
jbe 0x4935a0
mov edi, 0xd
jmp 0x493610
test ecx, ecx
je 0x4935d5
mov eax, dword [0x4e4bfc]
test eax, eax
je 0x4935af
call eax
cmp ebp, dword [ebx + 0x1c]
ja 0x4935c0
push ebp
push dword [ebx + 0x38]
call fcn.00479350
add esp, 8
push ebp
push ebx
call fcn.00441df0
mov eax, dword [0x4e4c00]
add esp, 8
test eax, eax
je 0x4935d5
call eax
push dword [ebx + 0x98]
push 0
push dword [esi + 4]
call sub.MSVCRT.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0x4df4a4
push 0xba67
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
add esp, 0x10
mov edi, 0xb
test byte [esi + 0x18], 2
je 0x493621
push 1
push esi
call fcn.0046f300
add esp, 8
mov eax, dword [esi + 0x1c]
push 1
dec dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
push dword [esi]
push dword [eax + 0x28]
call dword [0x4e25f0]
add esp, 0xc
mov esi, dword [esp + 0x2c]
cmp dword [ebx + 0x78], 0
jne 0x493659
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x493659
push ebx
call fcn.0046c2c0
add esp, 4
mov eax, edi
mov dword [esi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret