Function at 0x401774
Capabilities:
Get disk size
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff2c
mov dword [0x42e037], edi
sub dword [0x42e097], ecx
mov dword [0x42e094], eax
cmp dword [0x42e0c1], 0
jg 0x4017a8
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, 0x401f54
mov dword [ebp - 4], eax
mov eax, 0x401f80
mov dword [ebp - 8], eax
mov eax, 0x401f9c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0x12915
mov dword [ebp - 0x14], 0x19ff8
lea eax, [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
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_LogonUserW
test eax, eax
jne 0x401803
call fcn.004020cc
cmp word [0x42e10c], 0
jne 0x401813
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, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetThreadLocale
cmp word [0x42e10c], 0
jne 0x40185c
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 dword [0x42e09d], edx
sub esi, dword [0x42e066]
mov dword [0x42e090], ecx
mov dword [0x42e051], edx
mov dword [0x42e07a], edi
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x4018be
mov eax, 0x42e0c4
push 0
call fcn.00402c6c
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 - 0x24]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
je 0x401936
mov dword [0x42e037], edi
sub dword [0x42e097], ecx
mov dword [0x42e094], eax
cmp dword [0x42e0c1], 0
jg 0x401927
mov dword [0x42e0e7], eax
lea ecx, [0x42e015]
sub dword [ecx + 0xc], 0x67
mov edx, 0x19c
mov dword [0x42e0bb], ebx
mov dword [esp - 0x12], edi
xchg dword [0x42e0d4], ebx
cmp byte [0x42e03f], 0
jle 0x401970
mov dword [0x42e093], edx
add ebx, 0xf5
mov byte [0x42e069], 0xe5
mov dword [0x42e0c5], 0x15925
lea esi, [0x42e0a1]
mov dword [esi], 0x17
jmp 0x40197e
dec ecx
mov dword [0x42e08d], edi
mov byte [0x42e0fc], 0x53
and dword [0x42e01d], esi
cmp dh, byte [0x42e0ed]
jne 0x4019a6
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 ecx
push 1
push edx
call fcn.00401014
mov dword [esp - 0x18], edi
mov eax, edx
mov edi, dword [0x42e093]
mov dword [0x42e0bf], ecx
mov dword [0x42e06e], ebx
mov dword [ebp - 0x28], 0x125ee
mov eax, 0x401fc8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xd1]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_GetClassInfoA
test eax, eax
jne 0x401a03
call fcn.004016f0
mov dword [0x42e106], 0x12aed
mov dword [0x42e06d], edi
mov dword [0x42e03b], edx
cmp word [0x42e0d5], 0
jl 0x401a35
mov dword [0x42e088], ebx
mov dword [0x42e110], esi
mov dword [0x42e07f], ebx
mov dword [0x42e027], 0x1623e
mov dword [0x42e09b], ecx
mov eax, 0x401fd0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x136d0
mov dword [ebp - 0x38], 0x13b4e
mov dword [ebp - 0x3c], 0x1e612
mov dword [ebp - 0x40], 0x10358
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
call fcn.00404358
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 [0x42e106], 0x12aed
mov dword [0x42e06d], edi
mov dword [0x42e03b], edx
cmp word [0x42e0d5], 0
jl 0x401ae2
mov dword [0x42e088], ebx
mov dword [0x42e110], esi
mov dword [0x42e07f], ebx
mov dword [0x42e027], 0x1623e
mov dword [0x42e09b], ecx
push edi
mov edx, 0x42e046
call fcn.00404508
mov dword [0x42e0ff], 0x129d3
sub edx, 0xd2
lea eax, [0x42e059]
mov dword [eax + 0x24], ebx
xchg dword [0x42e040], edi
mov dword [0x42e0df], 0x102d8
mov eax, 0x401fe0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0x1afd7
mov dword [ebp - 0x4c], 0x1f45f
mov dword [ebp - 0x50], 0x102d7
mov dword [ebp - 0x54], 0x19301
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x401b6c
call fcn.004016f0
mov byte [ebp - 0xa9], 0
cmp word [0x42e10c], 0
jne 0x401b83
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, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
inc byte [ebp - 0xa9]
cmp byte [ebp - 0xa9], 2
jne 0x401b73
call fcn.00404508
mov dword [0x42e09d], edx
sub esi, dword [0x42e066]
mov dword [0x42e090], ecx
mov dword [0x42e051], edx
mov dword [0x42e07a], edi
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x401c37
mov dword [0x42e037], edi
sub dword [0x42e097], ecx
mov dword [0x42e094], eax
cmp dword [0x42e0c1], 0
jg 0x401c28
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, 0x401fe4
mov dword [ebp - 0x60], eax
mov eax, 0x402000
mov dword [ebp - 0x64], eax
mov eax, 0x402004
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], 0x18e61
mov dword [ebp - 0x70], 0x1146c
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [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
call sub.advapi32.dll_LogonUserW
mov byte [ebp - 0xa9], 0
mov dword [0x42e0e7], 0x10066
mov dword [0x42e025], edx
mov dword [0x42e087], edi
mov dword [0x42e04f], esi
mov dword [0x42e0fc], ecx
mov eax, 0x402014
mov dword [ebp - 0x78], eax
mov eax, 0x40202c
mov dword [ebp - 0x7c], eax
mov eax, 0x40203c
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], 0x10156
mov dword [ebp - 0x88], 0x160a6
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x88]
push eax
mov eax, dword [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
call sub.advapi32.dll_LogonUserW
test eax, eax
jne 0x401cfe
call fcn.00402990
mov dword [0x42e106], 0x12aed
mov dword [0x42e06d], edi
mov dword [0x42e03b], edx
cmp word [0x42e0d5], 0
jl 0x401d30
mov dword [0x42e088], ebx
mov dword [0x42e110], esi
mov dword [0x42e07f], ebx
mov dword [0x42e027], 0x1623e
mov dword [0x42e09b], ecx
inc byte [ebp - 0xa9]
cmp byte [ebp - 0xa9], 3
jne 0x401c81
mov dword [0x42e079], ebx
mov dword [0x42e0db], 0x15aa1
mov dword [0x42e054], ebx
mov word [0x42e0e5], 0x8e3f
mov dword [0x42e02c], edi
push 1
push esi
push ebx
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 - 0x90]
push eax
call sub.kernel32.dll_SetThreadLocale
mov byte [ebp - 0xa9], 0
cmp word [0x42e10c], 0
jne 0x401dc9
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, 0x402058
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], 0x15c51
mov dword [ebp - 0x9c], 0x1ea3c
mov dword [ebp - 0xa0], 0x14ca5
mov dword [ebp - 0xa4], 0x19612
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x94]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
inc byte [ebp - 0xa9]
cmp byte [ebp - 0xa9], 2
jne 0x401db9
push 1
push ebx
call fcn.00404508
xchg dword [0x42e0d4], ebx
cmp byte [0x42e03f], 0
jle 0x401eab
mov dword [0x42e093], edx
add ebx, 0xf5
mov byte [0x42e069], 0xe5
mov dword [0x42e0c5], 0x15925
lea esi, [0x42e0a1]
mov dword [esi], 0x17
jmp 0x401eb9
dec ecx
mov dword [0x42e08d], edi
mov byte [0x42e0fc], 0x53
and dword [0x42e01d], esi
cmp dh, byte [0x42e0ed]
jne 0x401ee1
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]
mov eax, dword [ebp - 0xa8]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x401f06
call fcn.004016f0
mov dword [0x42e106], 0x12aed
mov dword [0x42e06d], edi
mov dword [0x42e03b], edx
cmp word [0x42e0d5], 0
jl 0x401f38
mov dword [0x42e088], ebx
mov dword [0x42e110], esi
mov dword [0x42e07f], ebx
mov dword [0x42e027], 0x1623e
mov dword [0x42e09b], ecx
call fcn.00404508
mov esp, ebp
pop ebp
ret