Function at 0x417e30
Capabilities:
Get disk size

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebx, eax
lea edi, [esp + 0x10]
call fcn.00401300
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp - 8]
mov esi, 2
cmp eax, esi
jge 0x417e54
mov esi, eax
mov edi, dword [0x424d88]
test esi, esi
je 0x417e94
lea eax, [esi + 0xd]
push eax
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x417e94
lea ecx, [esi + 1]
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea edi, [eax + 0xc]
cmp ecx, esi
jb 0x417e94
push esi
push ebp
push edi
call fcn.0040b610
add esp, 0xc
mov ecx, 0x41feb4
mov eax, edi
jmp 0x417ea0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x417ec0
test dl, dl
je 0x417ebc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x417ec0
add eax, 2
add ecx, 2
test dl, dl
jne 0x417ea0
xor eax, eax
jmp 0x417ec5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea edx, [edi - 0xc]
setne bl
cmp edx, 0x424d78
je 0x417eec
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417eec
push esi
call fcn.0040b07a
add esp, 4
mov eax, dword [ebp - 8]
test bl, bl
je 0x417f8c
mov esi, 2
cmp eax, esi
jge 0x417f02
mov esi, eax
mov edi, dword [0x424d88]
mov dword [esp + 0x14], edi
test esi, esi
jne 0x417f16
mov dword [esp + 0x14], edi
jmp 0x417f50
lea eax, [esi + 0xd]
push eax
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x417f50
lea ecx, [esi + 1]
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
lea edi, [eax + 0xc]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [esp + 0x14], edi
cmp ecx, esi
jb 0x417f50
push esi
push ebp
push edi
call fcn.0040b610
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.00401480
lea edx, [edi - 0xc]
cmp edx, 0x424d78
je 0x41802e
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41802e
push esi
call fcn.0040b07a
add esp, 4
jmp 0x41802e
mov esi, 1
cmp eax, esi
jge 0x417f97
mov esi, eax
mov ecx, dword [0x424d88]
sub eax, esi
push eax
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
call fcn.00401fe0
mov esi, dword [esp + 0x14]
mov ecx, 0x41fd08
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x417fe0
test dl, dl
je 0x417fdc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x417fe0
add eax, 2
add ecx, 2
test dl, dl
jne 0x417fc0
xor eax, eax
jmp 0x417fe5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [esi - 0xc]
setne bl
cmp eax, 0x424d78
je 0x41800b
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41800b
push esi
call fcn.0040b07a
add esp, 4
test bl, bl
je 0x418032
push 0x41fd08
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x418032
mov esi, eax
push 0x41fd08
lea eax, [esp + 0x14]
call fcn.00402110
mov ebp, dword [esp + 0x10]
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418078
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
call eax
test eax, eax
je 0x4181e3
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
shrd esi, eax, 0xa
shr eax, 0xa
jmp 0x4181e5
mov eax, dword [ebp - 8]
mov esi, 2
cmp eax, esi
jge 0x418086
mov esi, eax
mov edi, dword [0x424d88]
test esi, esi
je 0x4180c6
lea ecx, [esi + 0xd]
push ecx
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x4180c6
lea edx, [esi + 1]
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea edi, [eax + 0xc]
cmp edx, esi
jb 0x4180c6
push esi
push ebp
push edi
call fcn.0040b610
add esp, 0xc
mov ecx, 0x41fd08
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4180f0
test dl, dl
je 0x4180ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4180f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4180d0
xor eax, eax
jmp 0x4180f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [edi - 0xc]
setne bl
cmp eax, 0x424d78
je 0x41811b
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41811b
push esi
call fcn.0040b07a
add esp, 4
test bl, bl
je 0x4181b1
mov eax, dword [ebp - 8]
mov esi, 2
cmp eax, esi
jge 0x418131
mov esi, eax
mov edi, dword [0x424d88]
mov dword [esp + 0x14], edi
test esi, esi
jne 0x418145
mov dword [esp + 0x14], edi
jmp 0x41817f
lea ecx, [esi + 0xd]
push ecx
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x41817f
lea edx, [esi + 1]
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
lea edi, [eax + 0xc]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [esp + 0x14], edi
cmp edx, esi
jb 0x41817f
push esi
push ebp
push edi
call fcn.0040b610
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.00401480
lea eax, [edi - 0xc]
cmp eax, 0x424d78
je 0x4181ad
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4181ad
push esi
call fcn.0040b07a
add esp, 4
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4181e3
mov esi, dword [esp + 0x18]
imul esi, dword [esp + 0x1c]
imul esi, dword [esp + 0x20]
shr esi, 0xa
jmp 0x4181e5
xor esi, esi
lea edx, [ebp - 0xc]
cmp edx, 0x424d78
je 0x418207
lea edi, [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418207
push edi
call fcn.0040b07a
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret