Function at 0x10018640
Capabilities:
Create thread
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100f1d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x1012007c]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x1012007c]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], esi
cmp dword [esi + 4], ebx
je 0x100186a3
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax]
push ebx
call edx
cmp eax, ebx
je 0x100186a3
lea eax, [ebx - 4]
jmp 0x10018c3c
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x100f7b7c]
mov dword [esp + 0x48], eax
mov eax, dword [0x100f7b78]
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
call fcn.100bb530
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0xb4], ebx
call fcn.1001a750
mov byte [esp + 0xb0], 1
xor edi, edi
lea esp, [esp]
mov edx, 1
mov ecx, edi
shl edx, cl
test dword [esp + 0x48], edx
je 0x100187b2
lea ecx, [esp + 0x98]
lea eax, [edi + 0x41]
push ecx
mov word [esp + 0x9c], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100187b2
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x58]
push eax
push ebx
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x100187b2
mov edx, dword [esp + 0x54]
sub edx, dword [esp + 0x5c]
mov ecx, dword [esi + 0x20]
mov eax, dword [esp + 0x58]
sbb eax, dword [esp + 0x60]
mov ebx, dword [esi + 0x24]
add edx, ecx
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x98]
adc eax, ebx
push edx
mov dword [esi + 0x24], eax
call fcn.10018530
add esp, 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x98]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ebx, [esp + 0x70]
call fcn.1001a5f0
mov ecx, eax
call dword [0x100f464c]
xor ebx, ebx
inc edi
cmp edi, 0x20
jl 0x10018710
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x4c], ecx
cmp edi, ebx
je 0x100187e6
cmp edi, dword [esp + 0x68]
je 0x100187ec
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x28], edx
je 0x100188e0
push 8
call sub.mfc90u.dll_new
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10018815
lea ecx, [ebx + 4]
call dword [0x100f4984]
jmp 0x10018817
xor ebx, ebx
add esi, 0xfffffff8
mov dword [ebx], esi
test edi, edi
jne 0x1001886a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
cmp eax, dword [edi + 0x18]
jne 0x10018835
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
add ecx, 0x10
push ecx
lea ecx, [ebx + 4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push 0
push 0
push ebx
push 0x100195e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x50], eax
test edx, edx
jne 0x1001886e
xor esi, esi
jmp 0x10018877
mov edi, dword [edi]
jmp 0x10018826
mov esi, dword [esp + 0x40]
sub esi, edx
sar esi, 2
mov ecx, dword [esp + 0x3c]
mov edi, ecx
sub edi, edx
sar edi, 2
cmp edi, esi
jae 0x100188a0
mov dword [ecx], eax
add ecx, 4
mov byte [esp + 0x21], 0
mov byte [esp + 0x22], 0
mov byte [esp + 0x23], 0
mov dword [esp + 0x3c], ecx
jmp 0x100188c8
mov esi, ecx
cmp edx, ecx
jbe 0x100188ac
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
push esi
push eax
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x3c]
call fcn.1001ae40
lea esi, [esp + 0x24]
call fcn.100bd160
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
xor ebx, ebx
jmp 0x100187d1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, eax
sub edx, ecx
sar edx, 2
test edx, edx
ja 0x10018901
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push 1
push 1
sub eax, ecx
sar eax, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x10018ad9
lea eax, [esi - 8]
neg eax
sbb eax, eax
and eax, esi
cmp dword [esi + 4], 0
je 0x1001893e
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
call eax
test eax, eax
jne 0x100189ef
lea eax, [esi + 0x10c]
push eax
xor ebx, ebx
call fcn.100012b0
cmp dword [esi + 0x16c], ebx
je 0x10018998
mov eax, dword [esi + 0x154]
mov ecx, dword [esi + 0x168]
mov ebx, dword [ecx]
lea edi, [esi + 0x154]
test eax, eax
jne 0x100189d2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x1001897f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x14]
mov eax, dword [edx]
mov ecx, dword [edi]
mov ebx, dword [ebx + 8]
push eax
push ecx
lea eax, [esp + 0x98]
push eax
call fcn.1001a8c0
mov edx, dword [esi + 0x10c]
mov eax, dword [edx + 0x1c]
lea ecx, [esi + 0x10c]
call eax
test ebx, ebx
je 0x100188e0
cmp dword [ebx + 0x18], 0
je 0x100189d6
lea ecx, [esi - 8]
push ecx
mov ecx, ebx
call fcn.10018da0
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
jmp 0x100188e0
mov eax, dword [eax]
jmp 0x10018974
push ebx
lea ecx, [esi + 0x78]
call fcn.100164f0
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
jmp 0x100188e0
lea eax, [esi + 0x10c]
push eax
call fcn.100012b0
mov eax, dword [esi + 0x168]
mov ecx, dword [eax]
mov edi, dword [esi + 0x154]
mov dword [esp + 0x18], ecx
lea ecx, [ecx]
mov ebx, dword [esi + 0x168]
mov eax, dword [esi + 0x154]
test edi, edi
je 0x10018a24
cmp edi, eax
je 0x10018a2a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], ebx
je 0x10018a8e
test edi, edi
jne 0x10018a86
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x10018a4b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10018a5f
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
test edi, edi
jne 0x10018a8a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x10018a7a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
jmp 0x10018a10
mov eax, dword [edi]
jmp 0x10018a3c
mov eax, dword [edi]
jmp 0x10018a6b
mov ecx, dword [esi + 0x168]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x168]
mov dword [ecx + 4], ecx
mov dword [esi + 0x16c], 0
cmp eax, dword [esi + 0x168]
je 0x10018ac8
mov edi, dword [eax]
push eax
call sub.mfc90u.dll_delete_1
add esp, 4
mov eax, edi
cmp edi, dword [esi + 0x168]
jne 0x10018ab3
mov edx, dword [esi + 0x10c]
mov eax, dword [edx + 0x1c]
lea ecx, [esi + 0x10c]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov edx, dword [esi + 0xa0]
mov eax, dword [edx + 0x54]
lea ecx, [esi + 0xa0]
call eax
test eax, eax
je 0x10018b1d
lea eax, [esi - 8]
neg eax
sbb eax, eax
and eax, esi
cmp dword [esi + 4], 0
je 0x10018b13
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
call eax
test eax, eax
jne 0x10018b1d
push 0x64
call ebx
inc edi
cmp edi, 0x3c
jl 0x10018ae1
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x80]
mov dword [esi + 0x34], ecx
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x24]
sub ebx, eax
sbb edx, ecx
cmp dword [esp + 0x18], edx
ja 0x10018ba7
jb 0x10018b55
cmp edi, ebx
jae 0x10018ba7
add eax, edi
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
adc ecx, dword [esp + 0x18]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edx
cmp ecx, edx
jb 0x10018b7b
ja 0x10018b71
cmp eax, edi
jbe 0x10018b7b
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
jmp 0x10018b83
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x28], ebx
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x2c], ebx
mov esi, dword [esi + 4]
test esi, esi
je 0x10018bed
mov ebx, dword [esi]
push ecx
push eax
push edx
mov edx, dword [ebx + 8]
push edi
mov ecx, esi
call edx
jmp 0x10018bed
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], ecx
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], eax
cmp edx, eax
jb 0x10018bcd
ja 0x10018bc7
cmp edi, ecx
jbe 0x10018bcd
mov edi, ecx
mov ebx, eax
jmp 0x10018bcf
mov ebx, edx
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], ebx
mov esi, dword [esi + 4]
test esi, esi
je 0x10018bed
mov edi, dword [esi]
push edx
mov edx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [edi + 8]
push ecx
mov ecx, esi
call eax
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x10018c00
push eax
call sub.mfc90u.dll_delete_1
add esp, 4
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call sub.mfc90u.dll_delete_1
add esp, 4
lea esi, [esp + 0x68]
mov dword [esp + 0xb0], 2
call fcn.1001ad00
mov edx, dword [esp + 0x68]
push edx
call sub.mfc90u.dll_delete_1
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.100e7da2
mov esp, ebp
pop ebp
ret 4