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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
mov ecx, eax
push esi
xor esi, esi
and ecx, 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ecx
cmp ebx, 1
je 0x10033970
cmp byte [edi + 0x16], 0
je 0x10033970
cmp byte [edi + 0x10], 1
je 0x10033966
test al, 2
je 0x10033970
mov dword [esp + 0x18], 1
jmp 0x10033974
mov dword [esp + 0x18], esi
cmp ebx, esi
jne 0x1003399c
push 0x101de034
push 0xb5c1
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10027e20
add esp, 0x10
mov eax, 0xb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x28]
mov byte [edi + 0x17], 1
cmp eax, esi
je 0x100339ae
mov esi, eax
jmp 0x10033b20
cmp dword [esp + 0x18], esi
je 0x10033ab4
mov eax, dword [edi + 0xd0]
cmp eax, esi
je 0x100339e5
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.10036ef0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10033c5b
cmp dword [esp + 0x10], eax
jne 0x10033ab4
mov esi, dword [edi + 0x98]
xor ecx, ecx
push ecx
mov dword [esp + 0x10], ecx
mov eax, esi
cdq
lea ecx, [ebx - 1]
push ecx
push edx
push eax
call fcn.1017f230
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10033c5b
cmp dword [esp + 0xc], eax
je 0x10033ab4
cmp byte [edi + 0x10], 1
jbe 0x10033a4d
mov eax, ebx
mov ecx, edi
call fcn.10033c90
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10033a66
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
mov esi, edi
call fcn.10032640
add esp, 0xc
mov esi, eax
jmp 0x10033a97
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax]
mov eax, dword [edi + 0x98]
push ecx
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
cdq
dec ecx
push ecx
push edx
push eax
call fcn.1017f230
push edx
mov edx, dword [ebx + 0x48]
push eax
mov eax, dword [edi + 0x3c]
push eax
call edx
mov ebx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10033aac
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10033c5b
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 [0x101f0eec]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10033afa
mov esi, dword [edi + 0xcc]
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.1002e5d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10033c5b
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xcc]
push eax
push ebx
push ecx
call fcn.1002e6c0
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov dword [edx], eax
test eax, eax
jne 0x10033b1c
lea esi, [eax + 7]
jmp 0x10033c5b
mov ecx, dword [esp + 0x1c]
test esi, esi
jne 0x10033c5b
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp dword [esi + 0x10], 0
mov dword [esp + 0xc], esi
je 0x10033b49
test ecx, ecx
jne 0x10033b49
inc dword [edi + 0xb8]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], edi
cmp ebx, 0x7fffffff
ja 0x10033c34
mov eax, dword [0x101f0f78]
cdq
idiv dword [edi + 0x98]
inc eax
cmp ebx, eax
je 0x10033c34
cmp byte [edi + 0xf], 0
jne 0x10033bce
cmp dword [edi + 0x18], ebx
jb 0x10033bce
test ecx, ecx
jne 0x10033bce
mov edx, dword [edi + 0x3c]
cmp dword [edx], ecx
je 0x10033bce
mov eax, dword [edi + 0xd0]
test eax, eax
je 0x10033bb0
cmp dword [esp + 0x18], ecx
jne 0x10033bb0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.10036ef0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10033c52
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc dword [edi + 0xbc]
push esi
call fcn.10031a80
mov esi, eax
add esp, 4
test esi, esi
je 0x10033c2c
jmp 0x10033c52
cmp ebx, dword [edi + 0x9c]
jbe 0x10033bdd
mov esi, 0xd
jmp 0x10033c52
test ecx, ecx
je 0x10033c17
mov eax, dword [0x101f76ac]
test eax, eax
je 0x10033bec
call eax
cmp ebx, dword [edi + 0x1c]
ja 0x10033c02
mov eax, dword [edi + 0x38]
test eax, eax
je 0x10033c02
push ebx
push eax
call fcn.1002de90
add esp, 8
push ebx
push edi
call fcn.10030930
mov eax, dword [0x101f76b0]
add esp, 8
test eax, eax
je 0x10033c17
call eax
mov edx, dword [edi + 0x98]
mov eax, dword [esi + 4]
push edx
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x101de034
push 0xb611
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.10027e20
add esp, 0x10
mov esi, 0xb
mov eax, dword [esp + 0xc]
call fcn.1002e760
cmp dword [edi + 0x78], 0
jne 0x10033c76
mov ecx, dword [edi + 0xcc]
cmp dword [ecx + 0xc], 0
jne 0x10033c76
push edi
call fcn.10030f70
add esp, 4
mov edx, dword [ebp + 0xc]
mov eax, esi
pop esi
mov dword [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret