Function at 0x401940
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40c41b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x888
mov eax, dword [0x413024]
push ebp
mov ebp, dword [esp + 0x89c]
test ebp, ebp
mov dword [esp + 0x888], eax
jne 0x40197b
or eax, 0xffffffff
jmp 0x401bb3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
lea ebx, [ebx]
mov ecx, ebp
call fcn.004014e0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x401ae1
jb 0x4019cb
cmp dword [esp + 0x10], 0x80000
jae 0x401ae1
push 0x400
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
push 0x200
jne 0x401a19
push 2
call fcn.00401790
mov esi, eax
add esp, 8
test esi, esi
je 0x401990
mov eax, dword [0x413038]
mov ecx, dword [0x413044]
push 0x30
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push 0
call edi
push eax
call ebx
jmp 0x401990
mov edx, dword [0x413034]
push esi
push 0xdb
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x401a47
push 0xdb
push str.CApp::LoadString___Couldnt_load_uID____d_n
call fcn.004024a0
add esp, 8
jmp 0x401990
mov ecx, ebp
call fcn.004014e0
mov eax, dword [eax]
mov cx, word [eax]
mov word [esp + 0x8c], cx
mov dx, word [eax + 2]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x98]
push esi
push ecx
mov word [esp + 0x9a], dx
mov word [esp + 0x9c], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
push 0
call edi
push eax
call ebx
mov edx, dword [0x413038]
mov ecx, dword [0x413044]
push 0x35
push edx
lea eax, [esp + 0x9c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x401990
mov al, byte [ebp + 8]
test al, al
je 0x401ad7
mov eax, dword [0x413044]
test eax, eax
je 0x401ad7
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0xf0f0f0f0
jmp 0x401bb0
mov al, byte [ebp + 0xb]
mov cl, byte [ebp + 9]
movzx edx, al
movzx eax, cl
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.00409330
mov ecx, dword [ebp + 0xc]
push 0
push str.SwitchTo
mov dword [esp + 0x8a8], 0
call fcn.00401f10
mov ecx, eax
call fcn.004031a0
push eax
lea ecx, [esp + 0x2c]
call fcn.0040ac50
test eax, eax
jne 0x401b8c
mov al, byte [esp + 0x88]
or esi, 0xffffffff
test al, al
mov edi, 4
je 0x401b46
mov esi, 0xfffffffe
mov edi, 0xcc
jmp 0x401b5b
mov al, byte [esp + 0x80]
test al, al
je 0x401b5b
mov esi, 0xfffffffd
mov edi, 0xda
mov al, byte [ebp + 8]
test al, al
je 0x401b69
mov ecx, ebp
call fcn.00401240
push 0x30
push edi
call fcn.00401100
add esp, 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x8a0], 0xffffffff
call fcn.004073f0
mov eax, esi
jmp 0x401bb0
mov al, byte [ebp + 8]
test al, al
je 0x401b9a
mov ecx, ebp
call fcn.00401240
lea ecx, [esp + 0x28]
mov dword [esp + 0x8a0], 0xffffffff
call fcn.004073f0
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x88c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x888]
pop ebp
call fcn.0040bc27
add esp, 0x894
ret 4