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

Disassembly:
push 0xffffffffffffffff
push 0x10112510
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x80]
mov dword [esp + 0x78], ebx
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x1003fa37
mov esi, dword [edi + 8]
mov eax, esi
sub eax, ecx
sar eax, 5
jne 0x1003fa53
mov esi, dword [esp + 0x84]
push esi
lea ecx, [esp + 0x28]
call fcn.10040740
mov eax, dword [esp + 0x28]
cmp eax, ebx
jmp 0x1003fd01
and dword [esp + 0x60], 0xfc000000
and byte [esp + 0x64], 0xf0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], 0xffffffff
mov byte [esp + 0x78], 1
mov eax, dword [edi + 0x8c]
imul dword [esp + 0x88]
mov ebp, eax
add ebp, dword [esp + 0x8c]
mov ebx, edx
adc ebx, dword [esp + 0x90]
mov dword [esp + 0x54], ebp
or ebx, 0xffff0000
cmp ecx, esi
mov dword [esp + 0x58], ebx
jbe 0x1003faac
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x88], eax
jbe 0x1003fac1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], eax
push eax
lea ecx, [esp + 0x50]
mov eax, esi
call fcn.100417a0
add esp, 4
test edi, edi
mov esi, eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], esi
jne 0x1003faf8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
ja 0x1003fb03
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x8c]
lea edi, [esi - 0x20]
cmp edi, dword [ecx + 8]
jb 0x1003fb18
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.1010eb00
mov esi, eax
mov eax, edx
mov dword [esp + 0x88], eax
mov eax, ebp
mov edx, ebx
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.1010eb00
mov ebp, eax
sub ebp, esi
mov esi, dword [esp + 0x88]
mov ebx, edx
sbb ebx, esi
cmp dword [esp + 0x94], 0
jle 0x1003fcd0
jmp 0x1003fb70
mov esi, dword [esp + 0x8c]
cmp edi, dword [esi + 8]
jb 0x1003fb82
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.1010eb00
cmp ebx, edx
jg 0x1003fc91
jl 0x1003fba8
cmp ebp, eax
jae 0x1003fc91
mov esi, dword [esp + 0x80]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x88], eax
jbe 0x1003fbc4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x8c], esi
je 0x1003fbd3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x8c]
mov edx, edi
sub edx, dword [esp + 0x88]
sar edx, 5
cmp edi, dword [eax + 8]
mov dword [esp + 0x34], edx
jb 0x1003fbf5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, edi
mov ecx, esi
call fcn.100403b0
mov ecx, dword [esp + 0x8c]
add eax, ebp
adc edx, ebx
cmp edi, dword [ecx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], edx
cdq
mov esi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
jb 0x1003fc2e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.1010eb00
sub eax, ebp
sbb edx, ebx
cmp esi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jg 0x1003fc60
jl 0x1003fc5a
cmp dword [esp + 0x14], eax
jae 0x1003fc60
lea ecx, [esp + 0x14]
jmp 0x1003fc64
lea ecx, [esp + 0x1c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub dword [esp + 0x94], eax
lea edx, [esp + 0x34]
add ebp, eax
push edx
lea esi, [esp + 0x28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
adc ebx, ecx
call fcn.10040850
mov esi, dword [esp + 0x8c]
cmp edi, dword [esi + 8]
jb 0x1003fc9c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.1010eb00
sub ebp, eax
sbb ebx, edx
cmp edi, dword [esi + 8]
jb 0x1003fcbf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add edi, 0x20
cmp dword [esp + 0x94], 0
jg 0x1003fb70
mov esi, dword [esp + 0x84]
push esi
lea ecx, [esp + 0x28]
call fcn.10040740
mov ecx, dword [esp + 0x60]
and ecx, 0x3ff0000
xor eax, eax
or eax, ecx
jne 0x1003fcfb
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1003fd0c
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x18