Function at 0x404508
Capabilities:
Get disk size
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff08
mov dword [0x42e0e7], 0x10066
mov dword [0x42e025], edx
mov dword [0x42e087], edi
mov dword [0x42e04f], esi
mov dword [0x42e0fc], ecx
mov dword [ebp - 4], 0x130c7
mov eax, 0x404a48
mov dword [ebp - 8], eax
lea eax, [ebp - 0xcd]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetClassInfoA
test eax, eax
jne 0x40459c
mov dword [0x42e106], 0x12aed
mov dword [0x42e06d], edi
mov dword [0x42e03b], edx
cmp word [0x42e0d5], 0
jl 0x40458c
mov dword [0x42e088], ebx
mov dword [0x42e110], esi
mov dword [0x42e07f], ebx
mov dword [0x42e027], 0x1623e
mov dword [0x42e09b], ecx
mov eax, 0x404a4c
mov dword [ebp - 0xc], eax
mov eax, 0x404a58
mov dword [ebp - 0x10], eax
mov eax, 0x404a5c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x147a2
mov dword [ebp - 0x1c], 0x12ba9
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_LogonUserW
test eax, eax
je 0x40460c
mov dword [0x42e0ff], 0x129d3
sub edx, 0xd2
lea eax, [0x42e059]
mov dword [eax + 0x24], ebx
xchg dword [0x42e040], edi
mov dword [0x42e0df], 0x102d8
mov dword [0x42e037], edi
sub dword [0x42e097], ecx
mov dword [0x42e094], eax
cmp dword [0x42e0c1], 0
jg 0x404637
mov dword [0x42e0e7], eax
lea ecx, [0x42e015]
sub dword [ecx + 0xc], 0x67
mov edx, 0x19c
mov dword [0x42e0bb], ebx
mov dword [esp - 0x12], edi
mov eax, 0x404a80
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x180b5
mov dword [ebp - 0x2c], 0x10131
mov dword [ebp - 0x30], 0x1c78a
mov dword [ebp - 0x34], 0x154c8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x40470b
xchg dword [0x42e0d4], ebx
cmp byte [0x42e03f], 0
jle 0x4046c5
mov dword [0x42e093], edx
add ebx, 0xf5
mov byte [0x42e069], 0xe5
mov dword [0x42e0c5], 0x15925
lea esi, [0x42e0a1]
mov dword [esi], 0x17
jmp 0x4046d3
dec ecx
mov dword [0x42e08d], edi
mov byte [0x42e0fc], 0x53
and dword [0x42e01d], esi
cmp dh, byte [0x42e0ed]
jne 0x4046fb
mov dword [0x42e07d], edx
mov edi, dword [esp + 8]
mov dword [0x42e0e2], 0x10b98
mov dword [0x42e0c8], esi
mov edx, ebx
mov dword [0x42e072], edi
mov dword [esp - 0x12], edx
mov edi, dword [esp + 0x1c]
cmp word [0x42e10c], 0
jne 0x40471b
mov dword [0x42e06a], ecx
lea edx, [0x42e0a3]
add dword [edx + 0xc], 0xb
mov dword [0x42e0c9], edi
xchg dword [0x42e01d], esi
mov dword [0x42e084], edi
mov dword [0x42e05b], 0x14e2c
mov dword [0x42e110], 0x17f82
mov eax, 0x404a8c
mov dword [ebp - 0x38], eax
mov eax, 0x404aa8
mov dword [ebp - 0x3c], eax
mov eax, 0x404ab4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0x1aa8d
mov dword [ebp - 0x48], 0x120a9
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.advapi32.dll_LogonUserW
test eax, eax
je 0x4047bb
mov dword [0x42e0ff], 0x129d3
sub edx, 0xd2
lea eax, [0x42e059]
mov dword [eax + 0x24], ebx
xchg dword [0x42e040], edi
mov dword [0x42e0df], 0x102d8
mov dword [ebp - 0x50], 0x1d6a1
mov eax, 0x404ac8
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0xf5]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.user32.dll_GetClassInfoA
test eax, eax
jne 0x4047e7
call fcn.00404358
mov dword [0x42e0e7], 0x10066
mov dword [0x42e025], edx
mov dword [0x42e087], edi
mov dword [0x42e04f], esi
mov dword [0x42e0fc], ecx
mov eax, 0x404ad0
mov dword [ebp - 0x58], eax
mov eax, 0x404ae4
mov dword [ebp - 0x5c], eax
mov eax, 0x404af8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], 0x157af
mov dword [ebp - 0x68], 0x12013
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.advapi32.dll_LogonUserW
mov dword [0x42e079], ebx
mov dword [0x42e0db], 0x15aa1
mov dword [0x42e054], ebx
mov word [0x42e0e5], 0x8e3f
mov dword [0x42e02c], edi
mov eax, 0x404b1c
mov dword [ebp - 0x70], eax
mov eax, 0x404b40
mov dword [ebp - 0x74], eax
mov eax, 0x404b60
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], 0x1c9d6
mov dword [ebp - 0x80], 0x1da97
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x70]
push eax
call sub.advapi32.dll_LogonUserW
test eax, eax
jne 0x4048c0
call fcn.00402990
mov byte [ebp - 0xa5], 0
mov dword [esp - 0x18], edi
mov eax, edx
mov edi, dword [0x42e093]
mov dword [0x42e0bf], ecx
mov dword [0x42e06e], ebx
mov eax, dword [ebp - 0x88]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
inc byte [ebp - 0xa5]
cmp byte [ebp - 0xa5], 3
jne 0x4048c7
mov dword [esp - 0x18], edi
mov eax, edx
mov edi, dword [0x42e093]
mov dword [0x42e0bf], ecx
mov dword [0x42e06e], ebx
mov eax, 0x404b8c
mov dword [ebp - 0x8c], eax
mov eax, 0x404bb0
mov dword [ebp - 0x90], eax
mov eax, 0x404bd0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], 0x1a8cd
mov dword [ebp - 0x9c], 0x16e21
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x8c]
push eax
call sub.advapi32.dll_LogonUserW
test eax, eax
jne 0x404a00
xchg dword [0x42e0d4], ebx
cmp byte [0x42e03f], 0
jle 0x4049ba
mov dword [0x42e093], edx
add ebx, 0xf5
mov byte [0x42e069], 0xe5
mov dword [0x42e0c5], 0x15925
lea esi, [0x42e0a1]
mov dword [esi], 0x17
jmp 0x4049c8
dec ecx
mov dword [0x42e08d], edi
mov byte [0x42e0fc], 0x53
and dword [0x42e01d], esi
cmp dh, byte [0x42e0ed]
jne 0x4049f0
mov dword [0x42e07d], edx
mov edi, dword [esp + 8]
mov dword [0x42e0e2], 0x10b98
mov dword [0x42e0c8], esi
mov edx, ebx
mov dword [0x42e072], edi
mov dword [esp - 0x12], edx
mov edi, dword [esp + 0x1c]
push edx
push 1
push 1
call fcn.00401014
mov dword [0x42e079], ebx
mov dword [0x42e0db], 0x15aa1
mov dword [0x42e054], ebx
mov word [0x42e0e5], 0x8e3f
mov dword [0x42e02c], edi
mov eax, dword [ebp - 0xa4]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x404a44
call fcn.004016f0
mov esp, ebp
pop ebp
ret