Function at 0x415510
Capabilities:
Create directory
Create thread
Enumerate gui resources
Get disk information
Get file attributes
Get hostname
Query environment variable
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, 0x15ac
call fcn.00413ad0
cmp dword [0x7efe9c], 0x6c
push ebx
push ebp
push esi
push edi
jne 0x4155fd
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x7efe9c], 0x3a
jne 0x415572
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
call fcn.00403fb6
add esp, 0xc
push 0x40348c
push 0
call fcn.00403fb6
push 0
call fcn.00403b69
add esp, 0xc
push 0
call fcn.00403fab
add esp, 4
push 0
call fcn.00403f7b
add esp, 4
push 0x403498
push 0x40349c
push 0x440708
call fcn.0040393c
add esp, 0xc
push 0
push 0
call fcn.00404118
push 0
push 0
push 0
call fcn.0040424f
add esp, 0x14
push 0
push 0
push 0
call fcn.00403eea
add esp, 0xc
push 0
push 0
push 0
push 0
call fcn.00403f15
push 0
call fcn.00403b3a
add esp, 0x14
mov eax, 0x38d6
add dword [0x7efe9c], eax
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x44]
mov ebp, dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
xor esi, esi
cmp esi, 0x1c2a7
jge 0x415624
push 0
call ebp
cmp esi, 0x1ea072e7
jle 0x41563c
cmp edi, 0xacd468
je 0x41563c
cmp ebx, 0xad1ade0
jne 0x415645
inc esi
cmp esi, 0x8c6fd558
jb 0x415618
mov edx, dword [0x7efe9c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov edi, dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
mov dword [0x7ef980], eax
mov eax, dword [0x7efe9c]
mov dword [esp + 0x10], 0x962d40
mov edi, edi
cmp eax, 0x3f5
jne 0x415748
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x9bc]
push ecx
push 0x4034a4
call edi
push 0
push 0
push 0
push 0
call ebp
push 0
push 0x4034b4
call ebx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xdbc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_AllocateUserPhysicalPages]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push 0x4034c8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x4034e8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
lea eax, [esp + 0x1bc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov eax, dword [0x7efe9c]
dec dword [esp + 0x10]
jne 0x415680
xor ebp, ebp
xor esi, esi
cmp eax, ebp
jbe 0x4157af
mov edi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
cmp eax, 0xfe
jne 0x415794
lea ecx, [esp + 0x14]
push ecx
xor eax, eax
lea edx, [esp + 0x3c]
push edx
push 0x403518
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
call fcn.004151f0
mov eax, dword [0x7efe9c]
cmp eax, 0x29
jne 0x4157aa
call ebx
mov eax, dword [0x7efe9c]
inc esi
cmp esi, eax
jb 0x415766
cmp eax, 0x19c
jne 0x4157e5
push 0x40352c
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x403568
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0x40357c
push 0x4035a0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.USER32.dll_GetMenu]
mov esi, 0x8dc
push ebp
call edi
dec esi
jne 0x4157f0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, 0x25865
cmp dword [0x7efe9c], 0x15a
jne 0x415821
lea eax, [esp + 0x78]
push eax
call esi
push 0x4035b0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
dec edi
jne 0x415801
mov byte [0x440708], 0
call fcn.00414d30
call fcn.004154e0
call fcn.004151d0
mov esi, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov ebp, 0xdd7b3
cmp dword [0x7efe9c], 0x21
jne 0x415888
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
lea ecx, [esp + 0x1c0]
push ecx
push 0
call edi
lea edx, [esp + 0x28]
push edx
push 0x4035c4
push 0
call ebx
dec ebp
jne 0x415851
call fcn.004154a0
cmp dword [0x7efe9c], 0x58c
mov byte [0x440709], 0x73
jne 0x415956
lea eax, [esp + 0x78]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
push ebp
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push ebp
lea edx, [esp + 0x1bc]
push edx
push 0x4035e8
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push 0x4035f8
push 0x403664
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
lea eax, [esp + 0x38]
push eax
push 0x403688
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
push ebp
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push 0x4036a4
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
call fcn.004151e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15ac
ret