Function at 0x40efd4
Capabilities:
Get disk size

Disassembly:
sub esp, 0x2cc
mov eax, dword [0x5a8cf0]
xor eax, esp
mov dword [esp + 0x2c8], eax
mov eax, dword [esp + 0x2dc]
push ebx
push ebp
mov ebp, dword [esp + 0x2d8]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x2ec]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [ecx], ebx
mov ecx, dword [esp + 0x2e0]
cmp ecx, 0x111
push edi
mov edi, dword [esp + 0x2e8]
mov dword [esp + 0x10], ebx
ja 0x40f169
je 0x40f136
cmp ecx, 0x24
ja 0x40f0e7
je 0x40f0da
sub ecx, 2
je 0x40f0ac
sub ecx, 3
je 0x40f044
sub ecx, 1
jne 0x40f49f
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x1f8]
push edi
mov ecx, esi
call eax
jmp 0x40f49f
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x1fc]
push edi
mov ecx, esi
call eax
lea ecx, [esp + 0x40]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
movzx ebp, dx
mov edx, dword [esi]
movzx ecx, ax
mov eax, dword [edx + 0x1e8]
shl ebp, 0x10
or ebp, ecx
push ebp
push edi
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1f0]
push 1
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
push ebx
push ebp
push edi
push ebx
push 0x5f
mov ecx, esi
call eax
jmp 0x40f49f
push ebx
push 0xffffffffffffffeb
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
call fcn.00498560
add esp, 4
call fcn.00498480
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov dword [esp + 0x10], 1
jmp 0x40f49f
push eax
mov ecx, esi
call fcn.0040ddf0
jmp 0x40f49f
sub ecx, 0x100
je 0x40f117
sub ecx, 1
jne 0x40f49f
mov edx, dword [esi]
push 1
push eax
mov eax, dword [edx + 0x200]
push edi
push 0x101
push ebp
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
jmp 0x40f49f
mov edx, dword [esi]
push 1
push eax
mov eax, dword [edx + 0x160]
push edi
push 0x100
push ebp
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
jmp 0x40f49f
mov edx, dword [esi]
mov edx, dword [edx + 0x1f4]
movzx eax, di
push eax
mov ecx, esi
call edx
cmp di, 0xfa2
je 0x40f49f
cmp di, 0xfa1
je 0x40f49f
mov dword [esp + 0x10], 1
jmp 0x40f49f
cmp ecx, 0x218
ja 0x40f484
je 0x40f45f
cmp ecx, 0x113
je 0x40f1ef
cmp ecx, 0x201
jne 0x40f49f
movzx ecx, ax
lea edx, [esp + 0x10]
push edx
shr eax, 0x10
push ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [esp + 0x14]
movzx edx, word [esp + 0x10]
shl eax, 0x10
or eax, edx
push eax
mov eax, dword [esi + 0x10]
push 0xf012
push 0x112
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [esp + 0x10], 1
jmp 0x40f49f
cmp dword [esi + 0x10], ebx
jne 0x40f1fb
xor eax, eax
jmp 0x40f4a3
mov ecx, dword [esi + 0xe0]
cmp ecx, ebx
je 0x40f44b
call fcn.00480360
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], 0x28
call fcn.0047b490
mov edx, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x108]
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0xc8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x38], ebx
call edx
mov dword [esp + 0x1c], 0x2e
call fcn.0047b490
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x108]
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call edx
mov ecx, dword [esi + 0xe0]
mov dword [esp + 0x20], eax
call fcn.00480600
fmul qword [0x553348]
call fcn.00517de0
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xc8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0x1c], 0x29
call fcn.0047b490
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x108]
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call edx
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xc8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x38], ebx
call edx
cmp byte [esi + 0xe4], bl
je 0x40f44b
cmp byte [esi + 0xe5], bl
jne 0x40f44b
cmp byte [esi + 0x104], bl
jne 0x40f44b
push ebx
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xee]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00488510
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dl, byte [esi + 0xfa]
shrd ecx, eax, 0x14
shr eax, 0x14
cmp dl, bl
je 0x40f38a
cmp eax, dword [esi + 0x100]
jg 0x40f382
jl 0x40f370
cmp ecx, dword [esi + 0xfc]
jae 0x40f382
mov edx, dword [esi]
mov eax, dword [edx + 0x204]
push ebx
mov ecx, esi
call eax
jmp 0x40f44b
cmp dl, bl
jne 0x40f44b
cmp eax, ebx
jl 0x40f3a1
jg 0x40f395
cmp ecx, 0x64
jb 0x40f3a1
cmp byte [esi + 0x105], bl
je 0x40f44b
cmp byte [esi + 0x105], bl
mov byte [esi + 0xfa], 1
je 0x40f3b5
sub ecx, 1
jmp 0x40f3b8
sub ecx, 2
push 0x206
mov dword [esi + 0xfc], ecx
lea ecx, [esp + 0xd6]
sbb eax, ebx
push ebx
push ecx
mov dword [esi + 0x100], eax
mov word [esp + 0xdc], bx
call fcn.00516810
push 0x7e
lea edx, [esp + 0x62]
push ebx
push edx
mov word [esp + 0x68], bx
call fcn.00516810
add esp, 0x18
push 0x104
lea eax, [esp + 0xd4]
push eax
push 0x10c
call fcn.004977c0
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push eax
call edi
push 0x40
lea ecx, [esp + 0x54]
push ecx
push 4
call fcn.004977c0
push eax
call edi
mov ecx, dword [esi + 0x10]
push 0x30
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xd8]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x40f44b
mov byte [esi + 0x104], al
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], 1
mov dword [edx], 1
jmp 0x40f49f
cmp edi, ebx
jne 0x40f49f
cmp byte [esi + 0xe4], bl
je 0x40f478
mov eax, dword [esi]
mov edx, dword [eax + 0x204]
push ebx
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
mov dword [eax], 1
jmp 0x40f49f
sub ecx, 0x467
je 0x40f49a
sub ecx, 1
jne 0x40f49f
push ebp
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x40f49f
call fcn.0049db30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2d8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051674d
add esp, 0x2cc
ret 0x14