Function at 0x403fdf
Capabilities:
Get disk size

Disassembly:
add byte [ebp - 0x75], dl
in al, dx
sub esp, 0x48
mov eax, dword [0x456240]
push ebx
push esi
mov esi, dword [eax + 0x3c]
imul esi, esi, 0x4008
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x38]
add esi, section..ndata
cmp dword [ebp + 0xc], 0x40b
push edi
mov dword [ebp - 4], eax
mov ebx, 0x3fb
jne 0x404020
push esi
push ebx
call fcn.00405705
push esi
call fcn.00405abb
cmp dword [ebp + 0xc], 0x110
jne 0x40409b
mov edi, dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov dword [ebp - 8], eax
call fcn.004057a6
test eax, eax
je 0x404051
push esi
call fcn.004057db
test eax, eax
jne 0x404051
push esi
call fcn.00405fba
push esi
push dword [ebp - 8]
mov dword [0x468548], edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp + 0x14]
push dword [eax + 0x34]
push 1
push edi
call fcn.0040389b
mov eax, dword [ebp + 0x14]
push dword [eax + 0x30]
push 0x14
push edi
call fcn.0040389b
push dword [ebp - 8]
call fcn.004038f4
push 7
call fcn.00405b93
test eax, eax
je 0x40430e
push 1
push dword [ebp - 8]
call eax
cmp dword [ebp + 0xc], 0x111
jne 0x40417a
movzx eax, word [ebp + 0x10]
cmp eax, ebx
jne 0x4040cb
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
mov edx, 0x300
cmp cx, dx
jne 0x40430e
mov dword [ebp + 0xc], 0x40f
cmp eax, 0x3e9
jne 0x40417a
push 7
pop ecx
push dword [ebp - 4]
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, 0x446220
push 0x4361e8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], 0x403a9f
mov dword [ebp - 0x30], esi
call fcn.0040609e
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x38], 0x41
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x404173
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call fcn.00405fba
mov eax, dword [0x47059c]
mov eax, dword [eax + 0x11c]
test eax, eax
je 0x404161
cmp esi, 0x4c50a8
jne 0x404161
push eax
push 0
call fcn.0040609e
push edi
mov edi, 0x460500
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404161
push edi
push esi
call sub.KERNEL32.dll_lstrcatW
inc dword [0x4361e4]
push esi
push ebx
push dword [ebp + 8]
call sub.USER32.dll_SetDlgItemTextW
jmp 0x40417a
mov dword [ebp + 0xc], 0x40f
cmp dword [ebp + 0xc], 0x40f
je 0x404190
cmp dword [ebp + 0xc], 0x405
jne 0x40430e
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
push ebx
call fcn.00405705
push esi
call fcn.00406016
test eax, eax
jne 0x4041b0
mov dword [ebp - 4], 1
push esi
mov edi, 0x43a208
push edi
call fcn.00405a8c
xor ebx, ebx
push ebx
call fcn.00405b93
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x404207
xor eax, eax
cmp eax, edi
je 0x404205
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [ebp - 0xc]
test eax, eax
jne 0x40425a
test ebx, ebx
je 0x4041ec
mov word [ebx], ax
push edi
call fcn.00405fe9
mov ebx, eax
xor eax, eax
mov word [ebx], ax
dec ebx
dec ebx
push 0x5c
pop eax
mov word [ebx], ax
cmp ebx, edi
jne 0x4041d1
xor ebx, ebx
push esi
push edi
call fcn.00405a8c
push edi
call fcn.004057db
cmp eax, ebx
je 0x40421d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x404272
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x18]
mov esi, 0x400
push esi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
mov dword [ebp - 8], 1
jmp 0x40427a
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
shrd edi, eax, 0xa
shr eax, 0xa
mov dword [ebp - 8], 1
xor ebx, ebx
jmp 0x404275
mov edi, dword [ebp + 0xc]
mov esi, 0x400
push 5
call fcn.00403fb0
cmp dword [ebp - 8], ebx
je 0x404291
cmp edi, eax
jae 0x404291
mov dword [ebp - 4], 2
mov ecx, dword [0x468568]
cmp dword [ecx + 0x10], ebx
je 0x4042c7
push 0xfffffffffffffffb
push 0x3ff
call fcn.00403ee7
cmp dword [ebp - 8], ebx
je 0x4042b9
push 0xfffffffffffffffc
push esi
mov eax, edi
call fcn.00403ee7
jmp 0x4042c7
push 0x40856c
push esi
push dword [ebp + 8]
call sub.USER32.dll_SetDlgItemTextW
mov eax, dword [ebp - 4]
mov dword [0x470664], eax
cmp eax, ebx
jne 0x4042dd
push 7
call fcn.0040141d
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
test dword [eax + 0x14], esi
je 0x4042e8
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
push eax
call fcn.004038e1
cmp dword [ebp - 4], ebx
jne 0x404308
cmp dword [0x4361e4], ebx
jne 0x404308
call fcn.004038bd
mov dword [0x4361e4], ebx
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00403926
pop edi
pop esi
pop ebx
leave
ret 0x10