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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100614bb
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100dd9d4]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov eax, dword [esi + 0x54]
mov edi, dword [esi + 0x60]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x74]
cmp eax, 2
mov dword [esp + 0xc0], ebp
mov dword [esp + 0x6c], edi
jne 0x1001610e
mov ebx, dword [esi + 0x4c]
push ebp
push edi
push ebp
push ebx
call sub.ntdll.dll__allmul
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
fild qword [esp + 0x1c]
fdiv qword [0x10064488]
fsub qword [0x10064ed8]
call fcn.10059526
mov ecx, edi
imul ecx, ebx
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [esi + 0x98]
add edx, dword [esp + 0x68]
push ebp
mov ecx, eax
push edi
mov edi, dword [esi + 0x9c]
mov eax, ebp
adc edi, eax
mov eax, dword [esi]
push edi
push edx
push ecx
mov dword [esp + 0x58], ecx
call fcn.10014a80
add esp, 0x18
test eax, eax
jne 0x10015e5a
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x25b
mov ecx, str..._fatcpy.cpp
add esi, 8
call fcn.100147d0
push eax
mov eax, dword [esi]
push str._s:_Failed_to_read_sector_for_FAT12_FatTable_
push edi
call eax
mov ecx, dword [esp + 0x50]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 0x14
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10015e41
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x28], edi
lea ebp, [edi + 2]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
jb 0x10015f32
ja 0x10015e7f
cmp dword [esp + 0x24], edi
jbe 0x10015f32
mov dword [esp + 0x14], 0x18
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
shr edx, 3
test byte [esp + 0x18], 1
mov cx, word [edx + eax]
je 0x10015ea3
shr cx, 4
jmp 0x10015ea8
and cx, 0xfff
movzx eax, cx
cmp ax, 0xff7
jne 0x10015ece
test ebx, ebx
jl 0x10015f03
jg 0x10015ebb
test edi, edi
jbe 0x10015f03
mov edx, ebp
sub edx, edi
lea eax, [esp + 0x44]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edi
push eax
jmp 0x10015ef6
test ax, ax
je 0x10015edb
add edi, 1
adc ebx, 0
jmp 0x10015f03
test ebx, ebx
jl 0x10015f03
jg 0x10015ee5
test edi, edi
jbe 0x10015f03
mov ecx, ebp
sub ecx, edi
lea edx, [esp + 0x58]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edi
push edx
lea ecx, [esp + 0x34]
call fcn.1001a9f0
xor edi, edi
xor ebx, ebx
mov eax, dword [esp + 0x18]
add ebp, 1
adc dword [esp + 0x20], 0
add dword [esp + 0x14], 0xc
add eax, 1
mov dword [esp + 0x18], eax
cdq
cmp edx, dword [esp + 0x28]
jb 0x10015e87
ja 0x10015f32
cmp eax, dword [esp + 0x24]
jb 0x10015e87
mov eax, dword [esp + 0x40]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
jl 0x10015f61
jg 0x10015f49
test edi, edi
jbe 0x10015f61
lea ecx, [esp + 0x74]
sub ebp, edi
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edi
call fcn.1001a9f0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10015f99
mov ecx, dword [esp + 0x38]
mov edx, ecx
sub edx, eax
sar edx, 3
je 0x10015f8c
cmp dword [esi + 0xa0], 0
jne 0x10016074
add edx, 0xffffffff
mov dword [esp + 0x14], edx
jns 0x10015fb9
test eax, eax
je 0x10015f99
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x38]
test eax, eax
je 0x10015fc8
sub ecx, eax
sar ecx, 3
cmp dword [esp + 0x14], ecx
jb 0x10015fd2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x50], edx
shl eax, 5
xor edx, edx
div dword [esi + 0x4c]
mov ebp, dword [esi + 0x50]
mov edx, dword [esp + 0x6c]
add ecx, 0xfffffffe
imul ecx, ebp
xor ebx, ebx
mov edi, eax
xor eax, eax
push eax
push edx
add edi, ecx
mov ecx, dword [esi + 0x5c]
push eax
push ecx
adc ebx, eax
call sub.ntdll.dll__allmul
add edi, eax
adc ebx, edx
add edi, dword [esp + 0x64]
mov eax, 0
adc ebx, eax
imul ebp, dword [esp + 0x50]
push eax
push ebp
push ebx
push edi
mov ecx, esi
call fcn.10015450
test eax, eax
je 0x10016046
sub dword [esp + 0x14], 1
mov eax, dword [esp + 0x34]
jns 0x10015fb5
jmp 0x10015f8c
call fcn.10059c60
push 0x2ae
mov edi, eax
mov esi, dword [edi]
mov ecx, str..._fatcpy.cpp
add esi, 8
call fcn.100147d0
push eax
mov eax, dword [esi]
push str._s:_Copy_data_failed.
push edi
call eax
add esp, 0x10
jmp 0x10015e30
xor edx, edx
test eax, eax
mov dword [esp + 0x18], edx
je 0x10015f99
sub ecx, eax
sar ecx, 3
cmp edx, ecx
jae 0x10015f8c
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x50], edx
shl eax, 5
xor edx, edx
div dword [esi + 0x4c]
mov ebp, dword [esi + 0x50]
mov edx, dword [esp + 0x6c]
add ecx, 0xfffffffe
imul ecx, ebp
xor ebx, ebx
mov edi, eax
xor eax, eax
push eax
push edx
add edi, ecx
mov ecx, dword [esi + 0x5c]
push eax
push ecx
adc ebx, eax
call sub.ntdll.dll__allmul
add edi, eax
adc ebx, edx
add edi, dword [esp + 0x64]
mov eax, 0
adc ebx, eax
imul ebp, dword [esp + 0x50]
push eax
push ebp
push ebx
push edi
mov ecx, esi
call fcn.10014f50
test eax, eax
je 0x100160ff
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add edx, 1
jmp 0x10016076
call fcn.10059c60
push 0x2bd
jmp 0x10016050
cmp eax, 3
jne 0x1001642e
mov ebx, dword [esi + 0x4c]
push ebp
push edi
push ebp
push ebx
call sub.ntdll.dll__allmul
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
fild qword [esp + 0x74]
fmul qword [0x10064cc0]
fsub qword [0x10064ed8]
call fcn.10059526
imul ebx, edi
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [esi + 0x98]
add edx, dword [esp + 0x68]
push ebp
push edi
mov edi, dword [esi + 0x9c]
mov ecx, 0
adc edi, ecx
push edi
push edx
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esi]
call fcn.10014a80
add esp, 0x18
test eax, eax
jne 0x100161ae
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x2cb
mov ecx, str..._fatcpy.cpp
add esi, 8
call fcn.100147d0
push eax
mov eax, dword [esi]
push 0x10064e78
push edi
call eax
mov ecx, dword [esp + 0x24]
jmp 0x10015e27
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x28], edi
lea ebp, [edi + 2]
mov dword [esp + 0x20], edi
mov dword [esp + 0x44], edi
jb 0x10016283
ja 0x100161d3
cmp dword [esp + 0x24], edi
jbe 0x10016283
mov edx, dword [esp + 0x14]
add edx, 4
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
movzx eax, word [eax]
movsx ecx, ax
cmp ecx, 0xfff7
jne 0x10016216
test ebx, ebx
jl 0x10016254
jg 0x100161fa
test edi, edi
jbe 0x10016254
mov edx, ebp
sub edx, edi
lea eax, [esp + 0xac]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], edi
push eax
jmp 0x10016247
test ax, ax
je 0x10016223
add edi, 1
adc ebx, 0
jmp 0x10016254
test ebx, ebx
jl 0x10016254
jg 0x1001622d
test edi, edi
jbe 0x10016254
mov ecx, ebp
sub ecx, edi
lea edx, [esp + 0x94]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edi
push edx
lea ecx, [esp + 0x34]
call fcn.1001a9f0
xor edi, edi
xor ebx, ebx
mov eax, dword [esp + 0x44]
add ebp, 1
adc dword [esp + 0x20], 0
add dword [esp + 0x18], 2
add eax, 1
mov dword [esp + 0x44], eax
cdq
cmp edx, dword [esp + 0x28]
jb 0x100161de
ja 0x10016283
cmp eax, dword [esp + 0x24]
jb 0x100161de
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
jl 0x100162bb
jg 0x1001629a
test edi, edi
jbe 0x100162bb
lea ecx, [esp + 0x9c]
sub ebp, edi
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], edi
call fcn.1001a9f0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10015f99
mov ecx, dword [esp + 0x38]
mov edx, ecx
sub edx, eax
sar edx, 3
je 0x10015f8c
cmp dword [esi + 0xa0], 0
jne 0x10016394
add edx, 0xffffffff
mov dword [esp + 0x14], edx
js 0x10015f8c
jmp 0x100162f8
mov ecx, dword [esp + 0x38]
test eax, eax
je 0x10016307
sub ecx, eax
sar ecx, 3
cmp dword [esp + 0x14], ecx
jb 0x10016311
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x50], edx
shl eax, 5
xor edx, edx
div dword [esi + 0x4c]
mov ebp, dword [esi + 0x50]
mov edx, dword [esp + 0x6c]
add ecx, 0xfffffffe
imul ecx, ebp
xor ebx, ebx
mov edi, eax
xor eax, eax
push eax
push edx
add edi, ecx
mov ecx, dword [esi + 0x5c]
push eax
push ecx
adc ebx, eax
call sub.ntdll.dll__allmul
add edi, eax
adc ebx, edx
add edi, dword [esp + 0x64]
mov eax, 0
adc ebx, eax
imul ebp, dword [esp + 0x50]
push eax
push ebp
push ebx
push edi
mov ecx, esi
call fcn.10015450
test eax, eax
je 0x10016385
sub dword [esp + 0x14], 1
mov eax, dword [esp + 0x34]
jns 0x100162f4
jmp 0x10015f8c
call fcn.10059c60
push 0x314
jmp 0x10016050
xor edx, edx
test eax, eax
mov dword [esp + 0x18], edx
je 0x10015f99
sub ecx, eax
sar ecx, 3
cmp edx, ecx
jae 0x10015f8c
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x50], edx
shl eax, 5
xor edx, edx
div dword [esi + 0x4c]
mov ebp, dword [esi + 0x50]
mov edx, dword [esp + 0x6c]
add ecx, 0xfffffffe
imul ecx, ebp
xor ebx, ebx
mov edi, eax
xor eax, eax
push eax
push edx
add edi, ecx
mov ecx, dword [esi + 0x5c]
push eax
push ecx
adc ebx, eax
call sub.ntdll.dll__allmul
add edi, eax
adc ebx, edx
add edi, dword [esp + 0x64]
mov eax, 0
adc ebx, eax
imul ebp, dword [esp + 0x50]
push eax
push ebp
push ebx
push edi
mov ecx, esi
call fcn.10014f50
test eax, eax
je 0x1001641f
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add edx, 1
jmp 0x10016396
call fcn.10059c60
push 0x323
jmp 0x10016050
cmp eax, ebp
jne 0x10015f99
mov ecx, dword [esi + 0x4c]
shl ecx, 9
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x60]
xor ebp, ebp
add esp, 4
test eax, eax
mov ebx, 2
mov dword [esp + 0x60], edi
mov dword [esp + 0x18], 0x200
mov dword [esp + 0x40], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
jbe 0x100165cf
lea esp, [esp]
mov ecx, dword [esp + 0x60]
sub eax, ecx
cmp eax, 0x200
jb 0x100165b6
mov edx, ecx
mov ecx, dword [esi + 0x9c]
xor eax, eax
add edx, dword [esi + 0x98]
push 0
adc ecx, eax
add edx, dword [esp + 0x68]
push 0x200
adc ecx, eax
mov eax, dword [esi]
push ecx
push edx
mov edx, dword [esp + 0x24]
push edx
call fcn.10014a80
add esp, 0x14
test eax, eax
je 0x100166b6
mov edx, dword [esi + 0x4c]
shl edx, 9
shr edx, 2
cmp dword [esp + 0x40], 0
mov dword [esp + 0x58], edx
jne 0x100164e4
sub edx, 2
mov dword [esp + 0x58], edx
xor ecx, ecx
test edx, edx
mov dword [esp + 0x44], ecx
jbe 0x1001658b
cmp dword [esp + 0x40], 0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
jne 0x10016508
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx*4 + 8]
cmp eax, 0xffffff7
jne 0x10016535
test ebp, ebp
jl 0x10016574
jg 0x10016519
test edi, edi
jbe 0x10016574
mov ecx, ebx
sub ecx, edi
lea edx, [esp + 0xa4]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edi
push edx
jmp 0x1001655f
test eax, eax
je 0x10016541
add edi, 1
adc ebp, 0
jmp 0x10016574
test ebp, ebp
jl 0x10016574
jg 0x1001654b
test edi, edi
jbe 0x10016574
mov eax, ebx
sub eax, edi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edi
push ecx
lea ecx, [esp + 0x34]
call fcn.1001a9f0
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
xor edi, edi
xor ebp, ebp
add ebx, 1
adc dword [esp + 0x28], 0
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x44], ecx
jb 0x100164f2
mov ecx, dword [esp + 0x60]
mov eax, dword [esi + 0x60]
add ecx, 0x200
cmp ecx, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x40], 1
jb 0x10016480
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
jmp 0x100165cf
mov eax, dword [esi + 0x60]
sub eax, ecx
test eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], eax
jbe 0x100167ad
mov ecx, dword [esi + 0x4c]
imul ecx, dword [esp + 0x18]
mov eax, ecx
test eax, eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
jge 0x100165eb
fadd dword [0x100647e8]
fmul qword [0x10064e70]
fnstcw word [esp + 0x58]
movzx eax, word [esp + 0x58]
or eax, 0xc00
cmp dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
fldcw word [esp + 0x44]
fistp qword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
fldcw word [esp + 0x58]
mov dword [esp + 0x58], edx
jne 0x10016623
sub dword [esp + 0x58], 2
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov ebp, eax
mov eax, dword [esi + 0x4c]
imul eax, dword [esp + 0x1c]
push eax
push 0
push ebp
call sub.ntdll.dll_memset
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x9c]
push 0
push ecx
mov ecx, dword [esp + 0x78]
xor edx, edx
add ecx, dword [esi + 0x98]
adc eax, edx
add ecx, dword [esp + 0x7c]
mov dword [esp + 0x5c], eax
mov eax, edx
mov edx, dword [esp + 0x5c]
adc edx, eax
mov eax, dword [esi]
push edx
push ecx
push ebp
call fcn.10014a80
add esp, 0x24
test eax, eax
jne 0x100166f1
call fcn.10059c60
mov edi, eax
mov esi, dword [edi]
push 0x389
mov ecx, str..._fatcpy.cpp
add esi, 8
call fcn.100147d0
push eax
mov eax, dword [esi]
push str._s:_Failed_to_read_sector_for_FAT32_FatTable_
push edi
call eax
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 0x18
jmp 0x10015e30
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
call fcn.10059c60
mov ebx, eax
mov ebp, dword [ebx]
push 0x340
mov ecx, str..._fatcpy.cpp
add ebp, 8
call fcn.100147d0
mov edx, dword [ebp]
push eax
push str._s:_Failed_to_read_sector_for_FAT32_FatTable_
push ebx
call edx
mov ebx, dword [esp + 0x34]
add esp, 0x10
jmp 0x100165cf
xor edx, edx
xor ecx, ecx
cmp dword [esp + 0x58], edx
mov dword [esp + 0x44], ecx
jbe 0x100167a0
cmp dword [esp + 0x40], edx
mov eax, dword [ebp + ecx*4]
jne 0x10016711
mov eax, dword [ebp + ecx*4 + 8]
cmp eax, 0xffffff7
jne 0x10016740
cmp dword [esp + 0x20], edx
jl 0x10016788
jg 0x10016724
cmp edi, edx
jbe 0x10016788
mov edx, ebx
sub edx, edi
lea eax, [esp + 0x84]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edi
push eax
jmp 0x10016773
cmp eax, edx
je 0x1001674d
add edi, 1
adc dword [esp + 0x20], edx
jmp 0x10016788
cmp dword [esp + 0x20], edx
jl 0x10016788
jg 0x10016759
cmp edi, edx
jbe 0x10016788
mov ecx, ebx
sub ecx, edi
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edi
push edx
lea ecx, [esp + 0x34]
call fcn.1001a9f0
mov ecx, dword [esp + 0x44]
xor edi, edi
mov dword [esp + 0x20], edi
xor edx, edx
add ebx, 1
adc dword [esp + 0x28], edx
add ecx, 1
cmp ecx, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
jb 0x10016703
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ebp, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebp, ebp
jl 0x100167dc
jg 0x100167c4
test edi, edi
jbe 0x100167dc
lea ecx, [esp + 0x4c]
sub ebx, edi
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
call fcn.1001a9f0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10015f99
mov ecx, dword [esp + 0x38]
mov edx, ecx
sub edx, eax
sar edx, 3
je 0x10015f8c
cmp dword [esi + 0xa0], 0
jne 0x100168de
lea edi, [edx - 1]
xor edx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jl 0x10015f8c
jg 0x10016823
test edi, edi
jb 0x10015f8c
mov edx, dword [esp + 0x1c]
jmp 0x10016838
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10016845
sub ecx, eax
sar ecx, 3
cmp edx, ecx
jb 0x1001684f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov edi, dword [esi + 0x50]
xor eax, eax
push eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x70]
push edx
lea ebx, [ecx - 2]
mov ecx, dword [esi + 0x5c]
imul ebx, edi
push eax
push ecx
xor ebp, ebp
call sub.ntdll.dll__allmul
add ebx, eax
adc ebp, edx
add ebx, dword [esp + 0x64]
mov eax, 0
adc ebp, eax
imul edi, dword [esp + 0x50]
push eax
push edi
push ebp
push ebx
mov ecx, esi
call fcn.10015450
test eax, eax
je 0x100168cf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add edx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jg 0x10016830
jl 0x100168c6
test edx, edx
jae 0x10016830
mov eax, dword [esp + 0x34]
jmp 0x10015f8c
call fcn.10059c60
push 0x3d9
jmp 0x10016050
xor edi, edi
mov dword [esp + 0x20], edi
test eax, eax
mov dword [esp + 0x1c], edi
jne 0x100168f0
xor edx, edx
jmp 0x100168f7
mov edx, ecx
sub edx, eax
sar edx, 3
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jg 0x10015f8c
jl 0x1001690d
cmp edi, edx
jae 0x10015f8c
test eax, eax
je 0x1001691a
sub ecx, eax
sar ecx, 3
cmp edi, ecx
jb 0x10016924
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + edx*8]
mov edx, dword [eax + edx*8 + 4]
mov edi, dword [esi + 0x50]
xor eax, eax
push eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x70]
push edx
lea ebx, [ecx - 2]
mov ecx, dword [esi + 0x5c]
imul ebx, edi
push eax
push ecx
xor ebp, ebp
call sub.ntdll.dll__allmul
add ebx, eax
adc ebp, edx
add ebx, dword [esp + 0x64]
mov eax, 0
adc ebp, eax
imul edi, dword [esp + 0x50]
push eax
push edi
push ebp
push ebx
mov ecx, esi
call fcn.10014f50
test eax, eax
je 0x1001698c
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add edi, 1
adc dword [esp + 0x20], 0
jmp 0x100168e4
call fcn.10059c60
push 0x3e8
jmp 0x10016050