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

Disassembly:
sub esp, 0xc0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc8]
push ebx
mov dword [esp + 0x24], eax
mov ebx, ecx
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd8]
movzx ecx, word [ebx + 0x42]
mov dword [esp + 0x3c], eax
mov eax, ecx
and eax, 1
mov dword [esp + 0x2c], 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 [0x10178b38]
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 0x1003cee4
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003cee4
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], 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 0x1003d4f0
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 [0x10178b38]
test eax, eax
je 0x1003cf5a
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003cf5a
mov dword [esp + 0x80], eax
lea eax, [esp + 0x78]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [esp + 0x1c], ebx
jbe 0x1003d01f
mov edx, dword [esp + 0x30]
mov ecx, ebp
push 1
push esi
push dword [esp + 0x3c]
call fcn.1003cd10
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x1003d004
mov ebx, dword [esp + 0x1c]
or ecx, 0xffffffff
cmp esi, 4
cmove ecx, ebx
mov dword [edi], ecx
mov ecx, dword [0x10178b38]
test ecx, ecx
je 0x1003cfd9
push 0x28a
call ecx
add esp, 4
test eax, eax
je 0x1003cfd9
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x84]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebp, dword [esp + 0x18]
cmp byte [ebp + 0x2b], 0
jne 0x1003d023
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 0x1003d023
cmp ebp, 5
jne 0x1003d5c8
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], 0
jmp 0x1003d023
mov ebx, dword [esp + 0x1c]
inc esi
add edi, 4
lea eax, [esi - 3]
cmp eax, 5
jl 0x1003cf10
mov ecx, dword [esp + 0x2c]
cmp dword [ecx], ebx
jae 0x1003d4cd
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.1003c9e0
add esp, 4
mov ebx, eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x14], ebx
je 0x1003d4d1
mov edx, dword [esp + 0x30]
mov ecx, ebp
push 1
push 3
push dword [esp + 0x3c]
call fcn.1003cd10
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1003d4d1
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x5c], eax
mov dword [ecx + 0x20], edi
mov eax, dword [0x10178b38]
test eax, eax
je 0x1003d0d8
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003d0d8
mov dword [esp + 0x98], eax
lea eax, [esp + 0x90]
push eax
push 3
push ebx
push 0xc0000006
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0xe0]
mov ecx, dword [ebp + 8]
sar edx, 2
and edx, 3
mov dword [esp + 0xe0], edx
je 0x1003d10b
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 0x1003d39a
mov esi, dword [esp + 0x20]
push 0
push esi
push 0
push dword [esp + 0x50]
call fcn.1014b520
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x1003d13b
push 0
push 0x27
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
mov eax, dword [ebp + 4]
lea edx, [esp + 0x60]
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 0x1003d39e
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x54]
cmp ebx, ebp
jg 0x1003d1ed
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x60]
jl 0x1003d17a
cmp edi, esi
jae 0x1003d1ed
mov eax, dword [esp + 0x18]
push 0
push dword [esp + 0x24]
push 0
push dword [eax + 0x44]
call fcn.1014b520
add eax, edi
adc edx, ebx
add eax, 0x10000
adc edx, 0
cmp edx, ebp
jg 0x1003d1d0
jl 0x1003d1a4
cmp eax, esi
jae 0x1003d1d0
push 0x10167d54
push 0x103c8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
mov ebx, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebx
jmp 0x1003d392
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003d1ed
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 + 0x4c], edx
mov esi, dword [esp + 0x24]
or ecx, 0xffffffff
mov dword [esp + 0x28], ecx
mov eax, dword [esi]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 4]
sub eax, 1
mov dword [esp + 0x3c], eax
js 0x1003d277
lea eax, [eax + eax*4]
lea eax, [eax + 5]
lea esi, [esi + eax*4]
nop dword [eax + eax]
mov eax, dword [esi - 0xc]
mov ebx, dword [esi]
cmp eax, ebx
jge 0x1003d267
mov ecx, dword [esi - 8]
mov ebp, dword [esi - 4]
lea ecx, [ecx + eax*2]
movzx edi, word [ecx]
mov edx, dword [ebp + edi*4]
cmp edx, dword [esp + 0x58]
ja 0x1003d250
inc eax
add ecx, 2
mov dword [esi - 0xc], eax
cmp eax, ebx
jl 0x1003d232
mov ecx, dword [esp + 0x28]
jmp 0x1003d267
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jae 0x1003d267
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 0x1003d220
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
cmp ecx, 0xffffffff
je 0x1003d38e
mov eax, dword [0x10178b38]
test eax, eax
je 0x1003d2d5
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003d2d1
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x9c]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x128], 0
jne 0x1003d379
mov edx, dword [esp + 0x40]
cmp edx, dword [esp + 0x5c]
jbe 0x1003d300
cmp edx, dword [esp + 0x1c]
ja 0x1003d300
cmp ecx, dword [esp + 0x44]
jbe 0x1003d309
nop dword [eax]
mov edx, dword [esp + 0x4c]
jmp 0x1003d1f5
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 0x1003d396
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.1014b520
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 0x1003d396
mov edx, dword [esp + 0x4c]
jmp 0x1003d1f5
xor ebx, ebx
cmp byte [eax + 0x57], bl
sete bl
lea ebx, [ebx*2 + 7]
mov dword [esp + 0x14], ebx
jmp 0x1003d392
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 0x1003d3b4
push 0
push 0x25
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
test ebx, ebx
jne 0x1003d4aa
mov eax, dword [0x10178b38]
test eax, eax
je 0x1003d3fe
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003d3fe
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xa8]
push eax
push 3
push ebx
push 0xc0000006
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx]
cmp edi, dword [ecx + 0x10]
jne 0x1003d459
mov ecx, dword [ebp + 4]
mov eax, esi
mul dword [ebp + 0x48]
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 0x1003d4aa
mov edx, dword [esp + 0xe0]
mov ecx, dword [ebp + 4]
test edx, edx
je 0x1003d453
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 0x1003d4aa
jmp 0x1003d459
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
mov eax, dword [0x10178b38]
test eax, eax
je 0x1003d4aa
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003d4aa
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xb4]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp byte [ebp + 0x2b], 0
jne 0x1003d4d1
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 0x1003d4d1
mov ebx, dword [esp + 0x14]
cmp ebx, 5
jne 0x1003d4da
xor ebp, ebp
jmp 0x1003d4e6
mov ebp, dword [esp + 0x14]
test ebx, ebx
jne 0x1003d5c8
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0xd4]
test esi, esi
je 0x1003d5c8
mov eax, dword [0x10178b38]
test eax, eax
je 0x1003d546
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003d546
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
call edi
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x44]
jae 0x1003d558
mov ebp, 5
jmp 0x1003d5c8
cmp esi, 2
jl 0x1003d5c8
lea eax, [esp + 0x38]
push eax
push 4
call fcn.1002ae90
mov edx, dword [esp + 0x38]
mov ecx, ebx
push 4
push 4
push dword [esp + 0x44]
call fcn.1003cd10
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x1003d5c8
cmp esi, 3
jne 0x1003d5a7
mov edx, dword [esp + 0x38]
mov ecx, ebx
call fcn.1003cd80
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 0x1003d5c8
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 0x1003d639
cmp dword [0x10178a38], 0
je 0x1003d62c
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1003d5f6
push eax
call dword [0x10178a88]
add esp, 4
mov esi, dword [esp + 0x24]
push esi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push esi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1003d639
push eax
call dword [0x10178a90]
jmp 0x1003d636
push dword [esp + 0x24]
call dword [0x10178a5c]
add esp, 4
mov ecx, dword [esp + 0xcc]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013942d
add esp, 0xc0
ret