Function at 0x409494
Capabilities:
Get disk size
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4657a5
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x487590]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487590]
xor eax, esp
push eax
lea eax, [esp + 0x888]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
call fcn.00402f0e
mov ecx, eax
call fcn.0040c2b8
push 0x48a0a8
mov ecx, 0x489028
mov ebp, eax
call fcn.00437c60
push eax
lea ecx, [esp + 0x44]
call fcn.004029e6
and dword [esp + 0x890], 0
mov ecx, dword [ebx + 0x50]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00416f70
mov byte [esp + 0x890], 2
mov ecx, dword [esp + 0x40]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
cmp esi, edi
je 0x4095ee
push 0
push 0x489028
push 0x4889f8
push 0
push dword [esi]
call fcn.0043a37b
mov ebx, eax
add esp, 0x14
lea eax, [esp + 0x60]
push eax
mov ecx, ebx
call fcn.0041a7ad
mov byte [esp + 0x890], 3
mov edx, dword [eax]
lea ecx, [esp + 0x38]
call fcn.00404c66
mov byte [esp + 0x890], 5
mov ecx, dword [esp + 0x60]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov edx, dword [esp + 0x38]
mov ecx, ebp
call fcn.0041d664
mov byte [esp + 0x890], 2
mov ecx, dword [esp + 0x38]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x54]
push dword [eax]
lea ecx, [esp + 0x50]
call fcn.00403649
mov byte [esp + 0x890], 6
mov edx, dword [esp + 0x4c]
mov ecx, ebp
call fcn.0041d996
mov byte [esp + 0x890], 2
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx - 0x10]
call fcn.00401551
add esi, 4
cmp esi, edi
jne 0x40953a
mov ebx, dword [esp + 0x20]
push 0x48a0a8
mov ecx, 0x488a20
call fcn.00437c60
push eax
lea ecx, [esp + 0x48]
call fcn.004029e6
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x70]
mov byte [esp + 0x894], 7
mov ecx, dword [ebx + 0x50]
push eax
call fcn.00416f70
mov byte [esp + 0x890], 9
mov ecx, dword [esp + 0x44]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
cmp esi, edi
je 0x4096af
push 0
push 0x488a20
push 0x4889f8
push 0
push dword [esi]
call fcn.0043a37b
mov ebx, eax
add esp, 0x14
mov ecx, ebx
call fcn.004161fd
mov edx, eax
mov ecx, ebp
call fcn.0041d761
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x54]
push dword [eax]
lea ecx, [esp + 0x54]
call fcn.00403649
mov byte [esp + 0x890], 0xa
mov edx, dword [esp + 0x50]
mov ecx, ebp
call fcn.0041d996
mov byte [esp + 0x890], 9
mov ecx, dword [esp + 0x50]
lea ecx, [ecx - 0x10]
call fcn.00401551
add esi, 4
cmp esi, edi
jne 0x409641
mov ebx, dword [esp + 0x20]
mov edx, 0x47ac1c
mov ecx, ebp
call fcn.0041d7ab
xor edi, edi
push edi
or edx, 0xffffffff
mov ecx, ebp
call fcn.0041d44a
pop ecx
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.0040384f
push 0xfffffffffffffffe
pop edx
mov ecx, ebp
mov byte [esp + 0x890], 0xb
call fcn.0041d09c
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x4099f8
mov ecx, dword [esp + 0x18]
call fcn.0040107b
test eax, eax
je 0x4099f8
mov edx, 0x47b4e0
mov ecx, ebp
call fcn.0041d7ab
push edi
or edx, 0xffffffff
mov ecx, ebp
call fcn.0041d44a
pop ecx
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.0040384f
push 0xfffffffffffffffe
pop edx
mov ecx, ebp
mov byte [esp + 0x890], 0xc
call fcn.0041d09c
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], edi
je 0x4097e8
push 0x47a8b4
lea ecx, [esp + 0x20]
call fcn.004045e9
test eax, eax
je 0x4097e8
mov esi, str.hwang
lea edi, [esp + 0x84]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7f2
xor edi, edi
lea eax, [esp + 0x96]
push edi
push eax
call fcn.00438850
add esp, 0xc
lea eax, [esp + 0x90]
push dword [esp + 0x1c]
push str.backpath___s
push eax
call fcn.00437dbf
add esp, 0xc
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [esp + 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x4097ce
mov ecx, dword [esp + 0x1c]
call fcn.0040107b
test eax, eax
jne 0x4097e8
push 0x30
push 0x47b4bc
push 0x47b508
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4099ea
mov esi, 0x104
push esi
lea ecx, [esp + 0x1c]
call fcn.00401662
mov ecx, dword [esp + 0x18]
mov edx, eax
cmp dword [ecx - 8], esi
jge 0x40980c
push 0x80070057
call fcn.00401697
mov dword [ecx - 0xc], esi
mov eax, dword [esp + 0x18]
xor ecx, ecx
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.00404c66
mov byte [esp + 0x890], 0xd
mov edx, dword [esp + 0x20]
mov ecx, ebp
call fcn.0041d664
mov byte [esp + 0x890], 0xc
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov edx, 0x47ac1c
mov ecx, ebp
call fcn.0041d996
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004012aa
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
push 2
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x898], 0xe
call fcn.0040ad85
lea eax, [esp + 0x64]
push eax
push edi
push edi
mov byte [esp + 0x89c], 0xf
mov edi, dword [esp + 0x48]
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, 0x47b524
mov ecx, ebp
call fcn.0041d7ab
push 0
or edx, 0xffffffff
mov ecx, ebp
call fcn.0041d44a
pop ecx
mov edx, eax
lea ecx, [esp + 0x34]
call fcn.0040384f
push 0xfffffffffffffffe
pop edx
mov ecx, ebp
mov byte [esp + 0x890], 0x10
call fcn.0041d09c
lea eax, [esp + 0x54]
push eax
push 0x47b6dc
push dword [esp + 0x3c]
call fcn.00438e4e
mov eax, dword [esp + 0x74]
add esp, 0xc
cmp eax, dword [esp + 0x58]
ja 0x4099bf
jb 0x409912
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x54]
jae 0x4099bf
push section..data
lea ecx, [esp + 0x4c]
call fcn.00401314
mov byte [esp + 0x890], 0x11
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x24], eax
mov eax, ecx
and ecx, 0x7fffffff
mov dword [esp + 0x28], ecx
fild qword [esp + 0x24]
and dword [esp + 0x24], 0
and eax, 0x80000000
mov dword [esp + 0x28], eax
fild qword [esp + 0x24]
push ecx
push ecx
lea eax, [esp + 0x50]
fchs
faddp st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp + 0x2c]
movss xmm1, dword [esp + 0x2c]
mulss xmm1, dword [0x480918]
mulss xmm1, dword [0x480918]
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
push 0x47b540
push eax
call fcn.0040ae2c
mov esi, dword [esp + 0x58]
add esp, 0x10
push 0x40
push 0x47b584
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0x10]
call fcn.00401551
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
jmp 0x4099ce
push 0
push 1
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x34]
lea ecx, [ecx - 0x10]
call fcn.00401551
lea ecx, [edi - 0x10]
call fcn.00401551
lea ecx, [esi - 0x10]
call fcn.00401551
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401551
jmp 0x409a0d
push 0x30
push 0x47b4bc
push 0x47b4c4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401551
lea ecx, [esp + 0x6c]
call fcn.00402dd6
lea ecx, [esp + 0x78]
call fcn.00402dd6
xor eax, eax
mov ecx, dword [esp + 0x888]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.00437bed
add esp, 0x880
ret 0x10