Function at 0x40c5d0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7737
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x164]
push 0x104
push 0
push eax
mov dword [ebp - 0x14], 1
call fcn.004d1ee0
add esp, 0xc
lea eax, [ebp - 0x164]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40c92a
mov dword [ebp - 0x10], 0x167009
xor ecx, ecx
nop
movzx eax, byte [ebp + ecx - 0x10]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 3
jb 0x40c670
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x34], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c6a0
sub ecx, edx
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00402aa0
mov dword [ebp - 4], 1
push 0x70
mov byte [ebp - 0xd], 0
call fcn.004606a0
sub esp, 0x18
mov byte [ebp - 0xe], al
mov edx, esp
mov dword [ebp - 0x1c], esp
xorps xmm0, xmm0
lea ecx, [ebp - 0xe]
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c6f0
sub ecx, edi
lea eax, [ebp - 0xe]
push ecx
push eax
mov ecx, edx
call fcn.00402aa0
mov byte [ebp - 4], 2
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x38], esp
xorps xmm0, xmm0
lea ecx, [ebp - 0x164]
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c730
sub ecx, edi
lea eax, [ebp - 0x164]
push ecx
push eax
mov ecx, edx
call fcn.00402aa0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0040bd80
add esp, 0x30
mov byte [ebp - 4], 4
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40c836
mov word [ebp - 0xf], 0x1670
xor ecx, ecx
mov byte [ebp - 0xd], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0xf]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0xf], al
inc ecx
cmp ecx, 2
jb 0x40c790
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xf]
mov edx, dword [edi + 0x10]
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c7b5
sub ecx, dword [ebp - 0x1c]
mov eax, closesocket
sub eax, edx
cmp eax, ecx
jb 0x40c93c
cmp dword [edi + 0x14], 0x10
jb 0x40c7d6
mov edi, dword [edi]
push ecx
lea eax, [ebp - 0xf]
push eax
push edx
push edi
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x5c]
call fcn.00467530
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], 3
call fcn.00402890
movups xmm0, xmmword [ebp - 0x5c]
mov eax, 3
mov byte [ebp - 0x5c], 0
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
and eax, 0xfffffffd
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00402890
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x18]
push 0
push 0
push 0
push 0
push ecx
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40c8d8
push 0x104
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.004d1ee0
add esp, 0xc
mov word [ebp - 0xf], 0x126f
mov byte [ebp - 0xd], 0
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0xf]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0xf], al
inc ecx
cmp ecx, 2
jb 0x40c885
push dword [ebp - 0x18]
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00402e20
lea ecx, [ebp - 0x268]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c8c0
sub ecx, edx
lea eax, [ebp - 0x268]
push ecx
push eax
mov ecx, esi
call fcn.0045f110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004612b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x40c918
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c90e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c941
push ecx
push edx
call fcn.004b9cb1
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00402210
call fcn.004d51a0
int3