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

Disassembly:
sub esp, 0x78
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
push ebx
mov dword [esp + 0x24], eax
mov ebx, ecx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x90]
movzx ecx, word [ebx + 0x42]
mov dword [esp + 0x3c], eax
mov eax, ecx
and eax, 1
mov dword [esp + 0x40], edx
shl eax, 0x10
and ecx, 0xfe00
push ebp
add eax, ecx
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov dword [esp + 0x18], eax
mov eax, dword [0x10177c48]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
test eax, eax
je 0x1003ba7b
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003ba7b
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
call edi
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x44]
add ecx, 0x60
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
cmp dword [ecx], eax
jae 0x1003c044
mov ebp, ebx
lea edi, [ecx + 8]
mov esi, 4
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x44], eax
mov ebx, dword [edi]
mov eax, dword [0x10177c48]
test eax, eax
je 0x1003bae8
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003bae8
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [esp + 0x1c], ebx
jbe 0x1003bba3
mov edx, dword [esp + 0x30]
mov ecx, ebp
push 1
push esi
push dword [esp + 0x3c]
call fcn.1003b8b0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x1003bb88
mov ebx, dword [esp + 0x1c]
or ecx, 0xffffffff
cmp esi, 4
cmove ecx, ebx
mov dword [edi], ecx
mov ecx, dword [0x10177c48]
test ecx, ecx
je 0x1003bb5d
push 0x28a
call ecx
add esp, 4
test eax, eax
je 0x1003bb5d
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebp, dword [esp + 0x18]
cmp byte [ebp + 0x2b], 0
jne 0x1003bba7
mov eax, dword [ebp + 4]
push 9
push 1
push esi
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov ecx, dword [ebp + 0x74]
lea eax, [esi + 8]
add esp, 0x10
btr ecx, eax
mov dword [ebp + 0x74], ecx
jmp 0x1003bba7
cmp ebp, 5
jne 0x1003c110
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], 0
jmp 0x1003bba7
mov ebx, dword [esp + 0x1c]
inc esi
add edi, 4
lea eax, [esi - 3]
cmp eax, 5
jl 0x1003baa7
mov ecx, dword [esp + 0x2c]
cmp dword [ecx], ebx
jae 0x1003c021
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.1003b480
add esp, 4
mov ebx, eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x14], ebx
je 0x1003c025
mov edx, dword [esp + 0x30]
mov ecx, ebp
push 1
push 3
push dword [esp + 0x3c]
call fcn.1003b8b0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1003c025
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
mov dword [ecx + 0x20], edi
mov eax, dword [0x10177c48]
test eax, eax
je 0x1003bc50
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003bc50
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
push 3
push ebx
push 0xc0000006
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0x98]
mov ecx, dword [ebp + 8]
sar edx, 2
and edx, 3
mov dword [esp + 0x98], edx
je 0x1003bc83
mov eax, dword [ecx]
push edx
push ecx
mov eax, dword [eax + 0x14]
call eax
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1003bf0a
mov esi, dword [esp + 0x20]
push 0
push esi
push 0
push dword [esp + 0x50]
call fcn.10149f40
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x1003bcb3
push 0
push 0x27
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
mov eax, dword [ebp + 4]
lea edx, [esp + 0x70]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1003bf0e
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x54]
cmp ebx, ebp
jg 0x1003bd65
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x70]
jl 0x1003bcf2
cmp edi, esi
jae 0x1003bd65
mov eax, dword [esp + 0x18]
push 0
push dword [esp + 0x24]
push 0
push dword [eax + 0x44]
call fcn.10149f40
add eax, edi
adc edx, ebx
add eax, 0x10000
adc edx, 0
cmp edx, ebp
jg 0x1003bd48
jl 0x1003bd1c
cmp eax, esi
jae 0x1003bd48
push 0x10166fc4
push 0x103c8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
mov ebx, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebx
jmp 0x1003bf02
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003bd65
lea edx, [esp + 0x50]
push edx
push 5
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
mov edx, dword [esp + 0x24]
mov dword [esp + 0x70], edx
nop dword [eax]
mov esi, dword [esp + 0x24]
or ecx, 0xffffffff
mov dword [esp + 0x28], ecx
mov eax, dword [esi]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 4]
sub eax, 1
mov dword [esp + 0x3c], eax
js 0x1003bdf5
lea eax, [eax + eax*4]
lea eax, [eax + 5]
lea esi, [esi + eax*4]
mov eax, dword [esi - 0xc]
mov ebx, dword [esi]
cmp eax, ebx
jge 0x1003bde5
mov ecx, dword [esi - 8]
mov ebp, dword [esi - 4]
lea ecx, [ecx + eax*2]
nop dword [eax + eax]
movzx edi, word [ecx]
mov edx, dword [ebp + edi*4]
cmp edx, dword [esp + 0x50]
ja 0x1003bdce
inc eax
add ecx, 2
mov dword [esi - 0xc], eax
cmp eax, ebx
jl 0x1003bdb0
mov ecx, dword [esp + 0x28]
jmp 0x1003bde5
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jae 0x1003bde5
mov eax, dword [esi + 4]
mov ecx, edx
add eax, edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
sub esi, 0x14
dec eax
mov dword [esp + 0x3c], eax
test eax, eax
jns 0x1003bd96
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
cmp ecx, 0xffffffff
je 0x1003befe
mov eax, dword [0x10177c48]
test eax, eax
je 0x1003be47
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003be43
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x64]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x128], 0
jne 0x1003bee9
mov edx, dword [esp + 0x40]
cmp edx, dword [esp + 0x38]
jbe 0x1003be70
cmp edx, dword [esp + 0x1c]
ja 0x1003be70
cmp ecx, dword [esp + 0x44]
jbe 0x1003be79
nop
mov edx, dword [esp + 0x70]
jmp 0x1003bd70
mov ebx, dword [esp + 0x20]
lea ecx, [edx - 1]
mov ebp, dword [esp + 0x18]
lea eax, [ebx + 0x18]
mov esi, dword [ebp + 8]
mul ecx
mov edi, dword [esi]
add eax, 0x38
adc edx, 0
push edx
push eax
mov eax, dword [edi + 8]
push ebx
push dword [esp + 0x54]
push esi
call eax
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1003bf06
mov esi, dword [ebp + 4]
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
dec eax
mov edi, dword [esi]
push ebx
push 0
push eax
call fcn.10149f40
push edx
push eax
mov eax, dword [edi + 0xc]
push ebx
push dword [esp + 0x54]
push esi
call eax
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1003bf06
mov edx, dword [esp + 0x70]
jmp 0x1003bd70
xor ebx, ebx
cmp byte [eax + 0x57], bl
sete bl
lea ebx, [ebx*2 + 7]
mov dword [esp + 0x14], ebx
jmp 0x1003bf02
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003bf24
push 0
push 0x25
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
test ebx, ebx
jne 0x1003bffe
mov eax, dword [0x10177c48]
test eax, eax
je 0x1003bf62
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003bf62
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x64]
push eax
push 3
push ebx
push 0xc0000006
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp edi, dword [eax + 0x10]
jne 0x1003bfb9
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 4]
mul esi
mov esi, eax
mov eax, dword [ecx]
push edx
push esi
push ecx
mov eax, dword [eax + 0x10]
call eax
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1003bffe
mov edx, dword [esp + 0x98]
mov ecx, dword [ebp + 4]
test edx, edx
je 0x1003bfb3
mov eax, dword [ecx]
push edx
push ecx
mov eax, dword [eax + 0x14]
call eax
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1003bffe
jmp 0x1003bfb9
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
mov eax, dword [0x10177c48]
test eax, eax
je 0x1003bffe
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003bffe
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x64]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp byte [ebp + 0x2b], 0
jne 0x1003c025
mov eax, dword [ebp + 4]
push 9
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
and dword [ebp + 0x74], 0xfffff7ff
jmp 0x1003c025
mov ebx, dword [esp + 0x14]
cmp ebx, 5
jne 0x1003c02e
xor ebp, ebp
jmp 0x1003c03a
mov ebp, dword [esp + 0x14]
test ebx, ebx
jne 0x1003c110
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x1003c110
mov eax, dword [0x10177c48]
test eax, eax
je 0x1003c08e
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003c08e
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x64]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call edi
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x44]
jae 0x1003c0a0
mov ebp, 5
jmp 0x1003c110
cmp esi, 2
jl 0x1003c110
lea eax, [esp + 0x38]
push eax
push 4
call fcn.10029b40
mov edx, dword [esp + 0x38]
mov ecx, ebx
push 4
push 4
push dword [esp + 0x44]
call fcn.1003b8b0
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x1003c110
cmp esi, 3
jne 0x1003c0ef
mov edx, dword [esp + 0x38]
mov ecx, ebx
call fcn.1003b920
mov eax, dword [ebx + 8]
push ebp
push ebp
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
mov ebp, eax
cmp byte [ebx + 0x2b], 0
jne 0x1003c110
mov eax, dword [ebx + 4]
push 9
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
and dword [ebx + 0x74], 0xffff0fff
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x18]
mov dword [eax + 0x78], 0
je 0x1003c181
cmp dword [0x10177b48], 0
je 0x1003c174
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1003c13e
push eax
call dword [0x10177b98]
add esp, 4
mov esi, dword [esp + 0x24]
push esi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push esi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1003c181
push eax
call dword [0x10177ba0]
jmp 0x1003c17e
push dword [esp + 0x24]
call dword [0x10177b6c]
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10136e2d
add esp, 0x78
ret