Function at 0x404f12
Capabilities:
Get disk information
Get file attributes
Get hostname
Set file attributes
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1924
call fcn.00411c20
cmp dword [0x4460dc], 0x412
push ebx
push esi
push edi
jne 0x404f6b
lea ecx, [ebp - 0x114]
call fcn.00406475
lea ecx, [ebp - 0x114]
call fcn.00406536
xor esi, esi
push esi
call fcn.00406c1c
pop ecx
push esi
call fcn.00406c32
pop ecx
push esi
push esi
call fcn.00406a0f
push esi
push esi
call fcn.0040645e
add esp, 0x10
push esi
call fcn.004073fa
add dword [0x4460dc], 0xb2d3b
push 0x4047e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push dword [0x4460dc]
xor esi, esi
push esi
mov dword [0x445eac], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x445ea8], eax
call fcn.00404e68
xor edi, edi
cmp dword [0x4460dc], esi
jbe 0x404fde
mov eax, dword [0x4460e0]
mov al, byte [eax + edi + 0xb2d3b]
mov ecx, dword [0x445ea8]
mov byte [ecx + edi], al
cmp dword [0x4460dc], 0x292
jne 0x404fd5
push 0x404800
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
inc edi
cmp edi, dword [0x4460dc]
jb 0x404fa8
xor edi, edi
mov eax, dword [0x4460dc]
add eax, edi
cmp eax, 0x5e
jne 0x405064
push esi
push 0x40488c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
push 0x4048cc
push 0x4048f4
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
lea eax, [ebp - 0x920]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x520]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x404900
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x1120]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
inc edi
cmp edi, 0x40c893
jl 0x404fe0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x1b92e3d
jge 0x4059f2
mov dword [ebp - 0x70], 0x2e09266
mov dword [ebp - 0x3c], 0x47b54e0f
mov dword [ebp - 0x80], 0x77b68deb
mov dword [ebp - 0xf4], 0x249a5626
mov dword [ebp - 0xc8], 0x47964995
mov dword [ebp - 0x54], 0xa6778a7
mov dword [ebp - 0xec], 0x6561e59b
mov dword [ebp - 0x58], 0xb7c0518
mov dword [ebp - 4], 0x5bfd340c
mov dword [ebp - 0x100], 0x18b07421
mov dword [ebp - 0x18], 0x559502b6
mov dword [ebp - 0x50], 0x5039f22a
mov dword [ebp - 0x34], 0x3d2df284
mov dword [ebp - 0x8c], 0x1924c3c1
mov dword [ebp - 0xe8], 0xd090129
mov dword [ebp - 0x48], 0xfb35f78
mov dword [ebp - 0x30], 0xc40448e
mov dword [ebp - 0xe0], 0xc811f18
mov dword [ebp - 0xf0], 0x14b72c55
mov dword [ebp - 0x68], 0x6d1d1b94
mov dword [ebp - 0xc4], 0x3644ff9f
mov dword [ebp - 0x28], 0x7b35cb5f
mov dword [ebp - 8], 0x6ffc8d32
mov dword [ebp - 0x4c], 0x549c1b2e
mov dword [ebp - 0xc0], 0x53c70c01
mov dword [ebp - 0x90], 0x3499367d
mov dword [ebp - 0xb8], 0x72ecd406
mov dword [ebp - 0xa0], 0x546b6d92
mov dword [ebp - 0x84], 0x741d7da4
mov dword [ebp - 0x98], 0x685264e6
mov dword [ebp - 0xf8], 0x7682b03b
mov dword [ebp - 0x7c], 0x2f79f947
mov dword [ebp - 0xbc], 0x2f9f209a
mov dword [ebp - 0x88], 0x7398e9b6
mov dword [ebp - 0xb0], 0x7ae02faf
mov dword [ebp - 0xd0], 0x1bdbaa00
mov dword [ebp - 0xe4], 0x1b9932ed
mov dword [ebp - 0xc], 0x7709fb9b
mov dword [ebp - 0xb4], 0x2ec4571f
mov dword [ebp - 0x64], 0x103c8ffd
mov dword [ebp - 0x44], 0x5a447f70
mov dword [ebp - 0x60], 0x4e1899ea
mov dword [ebp - 0x20], 0x5318092e
mov dword [ebp - 0x14], 0x789a992f
mov dword [ebp - 0x104], 0x34a77b18
mov dword [ebp - 0x40], 0x6ba74445
mov dword [ebp - 0x10], 0x11bf9e84
mov dword [ebp - 0xac], 0x1ba51989
mov dword [ebp - 0x2c], 0x1f43786b
mov dword [ebp - 0xa4], 0x493848d3
mov dword [ebp - 0x9c], 0x5494d224
mov dword [ebp - 0xfc], 0x680fa265
mov dword [ebp - 0xdc], 0x5708bb44
mov dword [ebp - 0x94], 0x731bf713
mov dword [ebp - 0xd8], 0x23515ff7
mov dword [ebp - 0x74], 0x5799b7bf
mov dword [ebp - 0x24], 0x476a8ae5
mov dword [ebp - 0x108], 0xdb7d412
mov dword [ebp - 0x38], 0x1e56308d
mov dword [ebp - 0x5c], 0x63a3f375
mov dword [ebp - 0xa8], 0x4a25426e
mov dword [ebp - 0x6c], 0x113cca74
mov dword [ebp - 0xd4], 0x40dd67c9
mov dword [ebp - 0x1c], 0x5cc0d946
mov dword [ebp - 0x78], 0x236e1077
mov dword [ebp - 0xcc], 0x24f1c6f3
sub dword [ebp - 0x70], 0x6e7bda12
sub dword [ebp - 0x70], 0x20dfcd8e
add dword [ebp - 0x3c], 0x13947fb
add dword [ebp - 0x3c], 0x6094e574
add dword [ebp - 0x3c], 0x6799c682
sub dword [ebp - 0x3c], 0xe1c1568
add dword [ebp - 0x70], 0x41b6be60
add dword [ebp - 0x70], 0x5d0ff102
add dword [ebp - 0x80], 0x49ac8d9b
sub dword [ebp - 0x80], 0x1aca37ea
sub dword [ebp - 0x3c], 0x54e075a0
sub dword [ebp - 0xf4], 0x29ed17f1
add dword [ebp - 0x70], 0x7d2e12ba
sub dword [ebp - 0xf4], 0x6f39452e
sub dword [ebp - 0x70], 0x16d5c374
sub dword [ebp - 0xc8], 0x4bc9c2ef
sub dword [ebp - 0x3c], 0x2bdf985f
sub dword [ebp - 0x80], 0x53caf49b
add dword [ebp - 0x70], 0x196d425b
sub dword [ebp - 0xc8], 0x753fb495
add dword [ebp - 0xf4], 0x2c57458a
sub dword [ebp - 0xf4], 0x5dee2bf1
sub dword [ebp - 0xc8], 0x592faa57
add dword [ebp - 0xf4], 0x4f767d9b
add dword [ebp - 0xc8], 0x28c11bd8
sub dword [ebp - 0x70], 0x2958cee1
sub dword [ebp - 0xc8], 0x4934adff
sub dword [ebp - 0x3c], 0x633d15b2
sub dword [ebp - 0xc8], 0x693b855
sub dword [ebp - 0x70], 0x62f7b531
sub dword [ebp - 0x70], 0x4bff46b7
sub dword [ebp - 0x54], 0x4bab6262
add dword [ebp - 0x18], 0x532dd016
add dword [ebp - 0x70], 0x4fa2d0f2
add dword [ebp - 0x18], 0x1f42beff
sub dword [ebp - 0xc8], 0x7b646f17
add dword [ebp - 0x100], 0x689e37f0
add dword [ebp - 0xec], 0x18e8434d
add dword [ebp - 0x54], 0x679da83b
add dword [ebp - 0x80], 0x2f21173
add dword [ebp - 0xc8], 0x58596ce6
sub dword [ebp - 0xec], 0x31a16268
sub dword [ebp - 0xf4], 0x730f217c
add dword [ebp - 0xc8], 0x788557bb
sub dword [ebp - 0x18], 0x20372600
add dword [ebp - 0x30], 0xc8f7fb0
sub dword [ebp - 0x18], 0x73700d4e
sub dword [ebp - 0xf4], 0x6ac3efab
sub dword [ebp - 0xf4], 0x5f77934e
add dword [ebp - 8], 0x44efb7a1
add dword [ebp - 0x3c], 0x270ce731
sub dword [ebp - 0x8c], 0xe621e18
sub dword [ebp - 0xc8], 0x3d05cf87
sub dword [ebp - 0x70], 0x7fc6da14
add dword [ebp - 8], 0x3c3a8175
add dword [ebp - 0xc0], 0xb6340ea
add dword [ebp - 0xc8], 0x430f540
add dword [ebp - 0x70], 0x5fac9cd6
sub dword [ebp - 0xb8], 0x568b150c
sub dword [ebp - 0x30], 0x1cba5d35
add dword [ebp - 0xa0], 0x91e0004
add dword [ebp - 0x34], 0x148b2842
add dword [ebp - 0x4c], 0x3c55ca07
sub dword [ebp - 0x4c], 0x636dafd
add dword [ebp - 0xc0], 0x5d70ae71
sub dword [ebp - 0xc0], 0x26abb29c
add dword [ebp - 0x34], 0x3aefc562
add dword [ebp - 0xa0], 0x5cbc02f8
add dword [ebp - 0x70], 0x8600395
sub dword [ebp - 0xe0], 0x38bb17b3
add dword [ebp - 0xa0], 0x757e484e
sub dword [ebp - 0xd0], 0x63a4c320
sub dword [ebp - 4], 0x6636104
sub dword [ebp - 0xf0], 0x29c12e43
add dword [ebp - 0xc4], 0x381b254d
sub dword [ebp - 4], 0x3ae86fb1
sub dword [ebp - 0x18], 0x3115ca2f
sub dword [ebp - 0xa0], 0x49e5c85b
sub dword [ebp - 0x70], 0x73e3d219
sub dword [ebp - 0xb0], 0x327f3b0e
add dword [ebp - 0x98], 0x1053f5a
sub dword [ebp - 0x54], 0x750d4a10
sub dword [ebp - 0xf4], 0x7cfbe0cc
sub dword [ebp - 0x54], 0x508a316f
sub dword [ebp - 0x64], 0x5559a76a
sub dword [ebp - 0xb4], 0x7ae9661b
add dword [ebp - 0x48], 0x72f65068
add dword [ebp - 0x84], 0x18518532
add dword [ebp - 0x98], 0x71bf69
sub dword [ebp - 0xb8], 0x7ce7a33e
sub dword [ebp - 0xc8], 0x97cc8d3
add dword [ebp - 0xf8], 0x634cb8cc
sub dword [ebp - 0x90], 0x269cda2b
sub dword [ebp - 0x34], 0x5e6a622b
add dword [ebp - 0x84], 0x120897dc
sub dword [ebp - 0x98], 0x78b2c9e3
sub dword [ebp - 0x88], 0x1f4559
sub dword [ebp - 0xe4], 0x76d33fba
add dword [ebp - 0x84], 0x79155d95
sub dword [ebp - 8], 0x25a9f514
add dword [ebp - 0x28], 0x2e3d61c6
add dword [ebp - 0x104], 0x33af502b
add dword [ebp - 0xe4], 0x3566657e
sub dword [ebp - 0x9c], 0x4ceb57
add dword [ebp - 0xc0], 0x9520f5a
add dword [ebp - 0xfc], 0x796c6608
sub dword [ebp - 0xe4], 0x6a589dbb
add dword [ebp - 0xec], 0x2de49a0f
add dword [ebp - 0x18], 0x6a8e4bb9
add dword [ebp - 0x8c], 0x66e1012c
add dword [ebp - 0xd0], 0x19f69599
add dword [ebp - 0x14], 0x7c7d844c
sub dword [ebp - 0xa4], 0x513e8c59
add dword [ebp - 0x104], 0x4c71a461
sub dword [ebp - 0xac], 0x379a92a4
sub dword [ebp - 0x60], 0x3f8a1c12
sub dword [ebp - 0xd0], 0x179b1ba5
sub dword [ebp - 0xc0], 0x208346d1
add dword [ebp - 0xe8], 0x1b5e784a
add dword [ebp - 0x94], 0x79d7f405
add dword [ebp - 0x64], 0x67739893
sub dword [ebp - 0x14], 0x6f331b56
sub dword [ebp - 0xb0], 0x17c8af6e
add dword [ebp - 0xdc], 0x711b1137
add dword [ebp - 0x60], 0x687f5345
add dword [ebp - 0x8c], 0xdfe8887
sub dword [ebp - 0x40], 0x5cbf3c35
add dword [ebp - 0xf8], 0x61331186
add dword [ebp - 0x74], 0x56f67367
add dword [ebp - 0x90], 0x6d2d6bb9
sub dword [ebp - 0x10], 0x5d275605
add dword [ebp - 0x80], 0x28258c18
sub dword [ebp - 0x7c], 0x72abd586
add dword [ebp - 0xdc], 0x7ecf8d40
add dword [ebp - 0x74], 0x5dc77704
add dword [ebp - 0xc0], 0x67b4be50
sub dword [ebp - 0xc], 0x4f4f2068
add dword [ebp - 0xc8], 0x15b813d2
add dword [ebp - 0x108], 0xa7eef32
add dword [ebp - 0x104], 0xe8f8f8e
add dword [ebp - 0x74], 0xe411a86
sub dword [ebp - 0x34], 0x24441909
add dword [ebp - 4], 0x36b969e0
add dword [ebp - 0xbc], 0xf9cb85f
sub dword [ebp - 0x58], 0x5e6dfe57
add dword [ebp - 0xb0], 0xb39c454
sub dword [ebp - 0xf4], 0x5aa30038
sub dword [ebp - 0x7c], 0x7781599d
sub dword [ebp - 0xdc], 0x5691bb2d
sub dword [ebp - 0x48], 0xa6bbb68
sub dword [ebp - 0x94], 0x19e89890
sub dword [ebp - 0x80], 0x7d505f15
sub dword [ebp - 0xd8], 0x78d3fc18
sub dword [ebp - 0x18], 0x628818eb
add dword [ebp - 0xd8], 0x310b0387
sub dword [ebp - 0xf8], 0x2c207445
sub dword [ebp - 0xfc], 0x1c716c93
add dword [ebp - 0x104], 0x1594451d
sub dword [ebp - 0xec], 0x63ad57c6
sub dword [ebp - 0x104], 0x6aa08e87
sub dword [ebp - 0x4c], 0x3b206584
sub dword [ebp - 0x14], 0x7430a93e
sub dword [ebp - 0x34], 0xe8b7b88
add dword [ebp - 0x6c], 0x3dd7766e
sub dword [ebp - 0xb0], 0x193a220f
sub dword [ebp - 0x74], 0x51e3fc9
add dword [ebp - 0xe0], 0x77f96d40
add dword [ebp - 0xc0], 0x17b977c9
sub dword [ebp - 0x10], 0x5e5228bb
add dword [ebp - 0x60], 0x205cab71
add dword [ebp - 0x30], 0x678584a2
sub dword [ebp - 0x88], 0x65971d02
add dword [ebp - 0x28], 0x1c58a577
sub dword [ebp - 0x20], 0x7bff565e
sub dword [ebp - 0x104], 0x58025917
add dword [ebp - 0x5c], 0x4a93eddd
add dword [ebp - 0x100], 0x525b00d5
add dword [ebp - 0x88], 0x19057f7e
add dword [ebp - 0x50], 0x3954bb7c
sub dword [ebp - 0x6c], 0x30355531
add dword [ebp - 0xb8], 0x70c632c1
sub dword [ebp - 0xc8], 0xa171b1f
add dword [ebp - 0x68], 0x41087e8b
add dword [ebp - 0xc], 0xfd5af9
sub dword [ebp - 0x40], 0x1d84fa8e
sub dword [ebp - 0xd8], 0x7048d1d6
sub dword [ebp - 0x44], 0x1f06563a
add dword [ebp - 0x24], 0x74fba40a
add dword [ebp - 0xd4], 0x7431b39a
sub dword [ebp - 4], 0x68864f4b
sub dword [ebp - 0x14], 0x3f7ce103
sub dword [ebp - 8], 0x3837fc8c
sub dword [ebp - 0xa8], 0x7e31ae87
sub dword [ebp - 0x48], 0x49c2f001
sub dword [ebp - 0xdc], 0x1315bbeb
add dword [ebp - 0x38], 0x50af8a2
add dword [ebp - 0x5c], 0x785bdb93
add dword [ebp - 0x78], 0x1e728b05
sub dword [ebp - 0xdc], 0x54cbfecc
add dword [ebp - 0x80], 0x20e23021
add dword [ebp - 0x70], 0x261a32f0
add dword [ebp - 0xb0], 0x3d1e657c
add dword [ebp - 0xcc], 0xa5b40fd
sub dword [ebp - 0x1c], 0x48fdae58
add dword [ebp - 0x2c], 0x2923e9f
sub dword [ebp - 0xe4], 0x87c272d
sub dword [ebp - 0x14], 0xe927280
add dword [ebp - 0x7c], 0x34806fd9
sub dword [ebp - 0x30], 0x65fa53c6
sub dword [ebp - 0xfc], 0x67d9fc63
sub dword [ebp - 0x30], 0x343648f2
sub dword [ebp - 0xc0], 0x1dd8ca03
add dword [ebp - 0x24], 0x2001e4b3
add dword [ebp - 0xb4], 0x46a6047f
sub dword [ebp - 0x84], 0x5a3b38e8
sub dword [ebp - 0x90], 0x7b40fcaa
sub dword [ebp - 0x24], 0x60e79c0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp edi, 0x1b3afd3
jg 0x405a0d
inc edi
cmp edi, 0x16ba6c90
jl 0x405073
call fcn.00404d87
xor ecx, ecx
cmp ecx, 0x770e
jne 0x405a21
call fcn.00404e4e
inc ecx
cmp ecx, 0x286b97d
jl 0x405a14
push 0x7b
pop edi
cmp dword [0x4460dc], 0x86
jne 0x405a4c
lea eax, [ebp - 0x520]
push eax
push esi
push 0x404928
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
dec edi
jne 0x405a2d
mov ebx, 0x184cc
cmp dword [0x4460dc], 0x1833b
jne 0x405b0f
push esi
lea eax, [ebp - 0x1920]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push esi
call dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_SetCriticalSectionSpinCount]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x520]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x740]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push esi
lea eax, [ebp - 0xd20]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
dec ebx
jne 0x405a54
call fcn.00404bbb
call dword [0x445ea8]
pop edi
pop esi
pop ebx
leave
ret