Function at 0x401014
Capabilities:
Get disk size
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff44
xchg dword [0x42e0d4], ebx
cmp byte [0x42e03f], 0
jle 0x401057
mov dword [0x42e093], edx
add ebx, 0xf5
mov byte [0x42e069], 0xe5
mov dword [0x42e0c5], 0x15925
lea esi, [0x42e0a1]
mov dword [esi], 0x17
jmp 0x401065
dec ecx
mov dword [0x42e08d], edi
mov byte [0x42e0fc], 0x53
and dword [0x42e01d], esi
cmp dh, byte [0x42e0ed]
jne 0x40108d
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 - 4]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x4010e4
mov dword [0x42e037], edi
sub dword [0x42e097], ecx
mov dword [0x42e094], eax
cmp dword [0x42e0c1], 0
jg 0x4010d5
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, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x401116
mov dword [0x42e079], ebx
mov dword [0x42e0db], 0x15aa1
mov dword [0x42e054], ebx
mov word [0x42e0e5], 0x8e3f
mov dword [0x42e02c], edi
mov byte [ebp - 0x91], 0
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, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
inc byte [ebp - 0x91]
cmp byte [ebp - 0x91], 1
jne 0x40111d
mov byte [ebp - 0x91], 0
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, 0x4015dc
mov dword [ebp - 0x10], eax
mov eax, 0x4015f0
mov dword [ebp - 0x14], eax
mov eax, 0x401614
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x16fd7
mov dword [ebp - 0x20], 0x16ee8
lea eax, [ebp - 0x24]
push eax
mov eax, dword [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
call sub.advapi32.dll_LogonUserW
mov dword [0x42e0e7], 0x10066
mov dword [0x42e025], edx
mov dword [0x42e087], edi
mov dword [0x42e04f], esi
mov dword [0x42e0fc], ecx
inc byte [ebp - 0x91]
cmp byte [ebp - 0x91], 1
jne 0x401167
mov dword [esp - 0x18], edi
mov eax, edx
mov edi, dword [0x42e093]
mov dword [0x42e0bf], ecx
mov dword [0x42e06e], ebx
mov dword [ebp - 0x28], 0x101ee
mov eax, 0x401640
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xb9]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.user32.dll_GetClassInfoA
mov dword [0x42e037], edi
sub dword [0x42e097], ecx
mov dword [0x42e094], eax
cmp dword [0x42e0c1], 0
jg 0x40126e
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, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_SetThreadLocale
mov dword [0x42e106], 0x12aed
mov dword [0x42e06d], edi
mov dword [0x42e03b], edx
cmp word [0x42e0d5], 0
jl 0x4012b8
mov dword [0x42e088], ebx
mov dword [0x42e110], esi
mov dword [0x42e07f], ebx
mov dword [0x42e027], 0x1623e
mov dword [0x42e09b], ecx
mov eax, 0x401648
mov dword [ebp - 0x34], eax
mov eax, 0x40166c
mov dword [ebp - 0x38], eax
mov eax, 0x401690
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0x1081c
mov dword [ebp - 0x44], 0x11e4c
lea eax, [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
mov eax, dword [ebp - 0x34]
push eax
call sub.advapi32.dll_LogonUserW
test eax, eax
je 0x401327
mov dword [esp - 0x18], edi
mov eax, edx
mov edi, dword [0x42e093]
mov dword [0x42e0bf], ecx
mov dword [0x42e06e], ebx
mov dword [0x42e037], edi
sub dword [0x42e097], ecx
mov dword [0x42e094], eax
cmp dword [0x42e0c1], 0
jg 0x401352
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, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
jne 0x4013f2
xchg dword [0x42e0d4], ebx
cmp byte [0x42e03f], 0
jle 0x4013ac
mov dword [0x42e093], edx
add ebx, 0xf5
mov byte [0x42e069], 0xe5
mov dword [0x42e0c5], 0x15925
lea esi, [0x42e0a1]
mov dword [esi], 0x17
jmp 0x4013ba
dec ecx
mov dword [0x42e08d], edi
mov byte [0x42e0fc], 0x53
and dword [0x42e01d], esi
cmp dh, byte [0x42e0ed]
jne 0x4013e2
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 dword [0x42e0e7], 0x10066
mov dword [0x42e025], edx
mov dword [0x42e087], edi
mov dword [0x42e04f], esi
mov dword [0x42e0fc], ecx
mov eax, 0x4016b0
mov dword [ebp - 0x50], eax
mov eax, 0x4016c0
mov dword [ebp - 0x54], eax
mov eax, 0x4016cc
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x1871f
mov dword [ebp - 0x60], 0x15740
lea eax, [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
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.advapi32.dll_LogonUserW
test eax, eax
jne 0x40149b
cmp word [0x42e10c], 0
jne 0x40146b
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, 0x4016d4
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], 0x13e32
mov dword [ebp - 0x70], 0x1b35c
mov dword [ebp - 0x74], 0x11536
mov dword [ebp - 0x78], 0x1b4db
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x40151e
mov dword [0x42e106], 0x12aed
mov dword [0x42e06d], edi
mov dword [0x42e03b], edx
cmp word [0x42e0d5], 0
jl 0x40150e
mov dword [0x42e088], ebx
mov dword [0x42e110], esi
mov dword [0x42e07f], ebx
mov dword [0x42e027], 0x1623e
mov dword [0x42e09b], ecx
mov eax, 0x4016e4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], 0x10aca
mov dword [ebp - 0x84], 0x14ef0
mov dword [ebp - 0x88], 0x1c620
mov dword [ebp - 0x8c], 0x1244d
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov dword [esp - 0x18], edi
mov eax, edx
mov edi, dword [0x42e093]
mov dword [0x42e0bf], ecx
mov dword [0x42e06e], ebx
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_SetThreadLocale
test eax, eax
je 0x4015d5
cmp word [0x42e10c], 0
jne 0x4015a5
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 esp, ebp
pop ebp
ret