Function at 0x539750
Capabilities:
Get common file path
Get disk size
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59002c
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x690], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x6a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, str.idex
mov dword [esp + 0x48], eax
call fcn.0047b7f0
add esp, 4
test al, al
je 0x539ca4
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
push ebx
mov dword [esp + 0x6b4], ebx
call fcn.00564426
add esp, 4
push eax
call fcn.00568d2d
add esp, 4
call fcn.00568d3a
push eax
push str._05ld
lea edi, [esp + 0x1c]
call fcn.004815b0
add esp, 8
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x103
lea edx, [esp + 0x391]
push ebx
push edx
mov byte [esp + 0x398], bl
call fcn.005695a0
add esp, 0xc
lea eax, [esp + 0x14c]
mov ecx, 0x5a29fc
call fcn.004b2770
test eax, eax
jne 0x5398b0
movzx eax, byte [esp + 0x15b]
movzx ecx, byte [esp + 0x15a]
movzx edx, byte [esp + 0x159]
push eax
movzx eax, byte [esp + 0x15c]
push ecx
movzx ecx, byte [esp + 0x15f]
push edx
movzx edx, byte [esp + 0x162]
push eax
movzx eax, byte [esp + 0x165]
push ecx
movzx ecx, byte [esp + 0x168]
push edx
movzx edx, word [esp + 0x16a]
push eax
movzx eax, word [esp + 0x16c]
push ecx
mov ecx, dword [esp + 0x16c]
push edx
push eax
push ecx
push str._08lX_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x3bc]
call fcn.0053a260
add esp, 0x30
lea edx, [esp + 0x4c]
mov dword [esp + 0x48], edx
call dword [section..data]
push eax
lea eax, [esp + 0x390]
push eax
lea eax, [esp + 0x50]
call fcn.0047a110
mov byte [esp + 0x6b0], 1
mov edx, dword [esp + 0x48]
cmp edx, ebx
jne 0x5398e4
xor eax, eax
jmp 0x5398ff
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5398f0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
push ecx
call fcn.00473c80
mov byte [esp + 0x6b0], 0
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x539928
push eax
call fcn.00566eaf
add esp, 4
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x6b0], 2
movzx ecx, word [esp + 0x36]
movzx edx, word [esp + 0x40]
movzx eax, word [esp + 0x3c]
push ecx
movzx ecx, word [esp + 0x38]
push edx
movzx edx, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x4a]
push ecx
movzx ecx, word [esp + 0x52]
push edx
push eax
push ecx
push str._03d_02d_02d_04d_02d_02d_02d
lea edi, [esp + 0x40]
call fcn.00481690
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 0xc]
add esp, 0x20
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00473c80
push 0x103
lea eax, [esp + 0x289]
push ebx
push eax
mov byte [esp + 0x290], 0
call fcn.005695a0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x288]
push edx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor eax, eax
mov dword [esp + 0x15d], eax
mov dword [esp + 0x161], eax
mov dword [esp + 0x165], eax
mov dword [esp + 0x169], eax
mov dword [esp + 0x16d], eax
mov dword [esp + 0x171], eax
mov dword [esp + 0x175], eax
mov word [esp + 0x179], ax
mov byte [esp + 0x17b], al
lea eax, [esp + 0x284]
mov byte [esp + 0x15c], 0
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x539a30
sub eax, ecx
push eax
lea edi, [esp + 0x288]
lea esi, [esp + 0x160]
call fcn.0053ad00
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x6b0], 3
xor esi, esi
movzx eax, byte [esp + esi + 0x15c]
push eax
push str._02x
lea edi, [esp + 0x20]
call fcn.004815b0
add esi, 1
add esp, 8
cmp esi, 0x10
jl 0x539a72
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00473c80
push 0x206
lea edx, [esp + 0x49a]
push ebx
push edx
mov word [esp + 0x4a0], bx
call fcn.005695a0
add esp, 0xc
push 0x104
lea eax, [esp + 0x498]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
lea edx, [esp + 0x4a0]
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [esp + 0x24]
push eax
push str._010lu
lea edi, [esp + 0x1c]
call fcn.004815b0
push 0x103
lea ecx, [esp + 0x189]
push ebx
push ecx
mov byte [esp + 0x190], 0
call fcn.005695a0
lea edx, [esp + 0x60]
add esp, 0x14
mov dword [esp + 0x48], edx
call dword [section..data]
push eax
mov eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x50]
call fcn.00479fa0
mov ecx, dword [esp + 0x48]
push ecx
lea edx, [esp + 0x180]
push 0x104
push edx
call fcn.005676a0
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
add esp, 0xc
cmp eax, ecx
je 0x539b72
push eax
call fcn.00566eaf
add esp, 4
lea eax, [esp + 0x17c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x539b80
sub eax, edx
push eax
lea edi, [esp + 0x180]
lea esi, [esp + 0x160]
call fcn.0053ad00
add esp, 4
lea esi, [esp + 0x18]
call fcn.00481760
xor esi, esi
lea ecx, [ecx]
movzx edx, byte [esp + esi + 0x15c]
push edx
push str._02x
lea edi, [esp + 0x20]
call fcn.004815b0
add esi, 1
add esp, 8
cmp esi, 0x10
jl 0x539bb0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [ecx]
lea edi, [eax - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x539c30
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x539c25
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x539c25
mov eax, edi
call fcn.00481090
mov dword [esp + 0x30], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x539c16
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [edx], ecx
jmp 0x539c30
mov ebx, dword [eax - 0xc]
push eax
mov eax, ecx
call fcn.00480ff0
mov byte [esp + 0x6b0], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x539c51
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [esp + 0x6b0], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x539c79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6b0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x539ca4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
push ecx
push edx
call fcn.0053a0f0
mov eax, 1
mov ecx, dword [esp + 0x6a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x690]
xor ecx, esp
call fcn.00564207
mov esp, ebp
pop ebp
ret 4