Function at 0x4017a0
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x190
mov dword [esp + 0x17c], 0
jmp 0x40196a
mov eax, esp
mov dword [eax + 4], 0x57a4ca
mov dword [eax], 0xcbdefe
mov eax, dword [sym.imp.USER32.dll_ValidateRgn]
call eax
sub esp, 8
mov ecx, dword [esp + 0x17c]
mov edx, 0xcc29786d
mov dword [esp + 0x98], eax
mov eax, ecx
mul edx
shr edx, 8
imul eax, edx, 0x141
sub ecx, eax
mov eax, ecx
sub eax, 5
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
je 0x401849
jmp 0x401810
mov eax, dword [esp + 0x94]
sub eax, 0x3e
mov dword [esp + 0x8c], eax
je 0x401b52
jmp 0x401bac
jmp 0x401b3a
mov eax, dword [esp + 0x17c]
add eax, 1
mov dword [esp + 0x17c], eax
jmp 0x40196a
mov eax, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call eax
mov ecx, esp
mov dword [ecx], 0xcb0be9
mov ecx, dword [sym.imp.USER32.dll_IsWindowUnicode]
mov dword [esp + 0x88], eax
call ecx
sub esp, 4
mov word [esp + 0x172], 0x1a
mov dword [esp + 0xa8], 0x170
mov ecx, esp
lea edx, [esp + 0x180]
mov dword [ecx + 0x18], edx
lea edx, [esp + 0xa8]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], edx
lea edx, [esp + 0x172]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 0x182
mov dword [ecx + 8], 0xc95
mov dword [ecx], 0xc3dceb
mov ecx, dword [sym.imp.GDI32.dll_GetTextExtentExPointI]
mov dword [esp + 0x84], eax
call ecx
sub esp, 0x1c
mov dword [esp + 0x80], eax
jmp 0x401bca
mov eax, dword [esp + 0x174]
add eax, 1
mov dword [esp + 0x174], eax
jmp 0x401bb7
mov eax, esp
mov dword [eax + 4], 0x22e
mov dword [eax], 0x5256a1
mov eax, dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0xd6905d
mov ecx, dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov dword [esp + 0x7c], eax
call ecx
sub esp, 4
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x78], eax
call ecx
mov ecx, esp
mov dword [ecx], 0x8972de
mov ecx, dword [sym.imp.USER32.dll_BringWindowToTop]
mov dword [esp + 0x74], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 8], 0xebd
mov dword [ecx + 4], 0xc17
mov dword [ecx], 0x258
mov dword [esp + 0x70], eax
call sub.urlmon.dll_CoInternetSetFeatureEnabled
sub esp, 0xc
mov dword [esp + 0x6c], eax
jmp 0x4018d4
cmp dword [esp + 0x17c], 0xe
je 0x401be5
mov eax, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call eax
lea ecx, [esp + 0xb0]
mov edx, esp
mov dword [edx + 4], 0x9e6c
mov dword [edx], 0x54094
mov edx, dword [sym.imp.ADVAPI32.dll_NotifyChangeEventLog]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ecx
call edx
sub esp, 8
mov ecx, esp
lea edx, [esp + 0xc0]
mov dword [ecx], edx
mov ecx, dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
mov dword [esp + 0x60], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xd60
mov ecx, dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov dword [esp + 0x5c], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 0x41b
mov dword [ecx], 0x68aad5
mov ecx, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x58], eax
call ecx
sub esp, 8
mov ecx, 0xa7e7c2
xor edx, edx
mov esi, 0xc
mov edi, dword [esp + 0x64]
mov dword [esp], edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], esi
call fcn.00598a10
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18c], eax
mov ecx, esp
lea edx, [esp + 0x18c]
mov dword [ecx + 0x14], edx
lea edx, [esp + 0xb0]
mov dword [ecx + 8], edx
mov dword [ecx + 0x10], 0xf83
mov dword [ecx + 0xc], 0x9da
mov dword [ecx + 4], 0x93a
mov dword [ecx], 0xe36f24
mov ecx, dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call ecx
sub esp, 0x18
mov dword [esp + 0x178], 0
mov dword [esp + 0x44], eax
cmp dword [esp + 0x178], 0x227
je 0x4017be
mov eax, dword [esp + 0x178]
mov ecx, 0x88888889
mov dword [esp + 0x40], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x40]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
je 0x401b2a
jmp 0x401ac8
mov eax, dword [esp + 0x3c]
sub eax, 5
mov dword [esp + 0x34], eax
jne 0x40182c
jmp 0x401adb
mov eax, 0x8b39ac
mov dword [esp + 0xac], 0xead
mov dword [esp + 0x9c], eax
mov eax, esp
lea ecx, [esp + 0xac]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0x9c]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0x77
mov dword [eax + 4], 0xead
mov dword [eax], 0xead
mov eax, dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
call eax
sub esp, 0x14
mov dword [esp + 0x30], eax
mov eax, dword [sym.imp.ole32.dll_CoRevertToSelf]
call eax
mov dword [esp + 0x2c], eax
jmp 0x40182c
mov eax, dword [esp + 0x178]
add eax, 1
mov dword [esp + 0x178], eax
jmp 0x401a88
mov eax, esp
lea ecx, [esp + 0xa0]
mov dword [eax + 4], ecx
mov dword [eax], 0xc74d9d
mov eax, dword [sym.imp.GDI32.dll_GetAspectRatioFilterEx]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0xff8da
mov ecx, dword [sym.imp.GDI32.dll_CreatePatternBrush]
mov dword [esp + 0x28], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 0xaad
mov dword [ecx], 0x1f46a
mov ecx, dword [sym.imp.GDI32.dll_SetROP2]
mov dword [esp + 0x24], eax
call ecx
sub esp, 8
mov dword [esp + 0x20], eax
jmp 0x401849
mov dword [esp + 0x174], 0
cmp dword [esp + 0x174], 0xa
jne 0x4018ec
jmp 0x401bca
mov eax, esp
mov dword [eax], 0x522882
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
call eax
sub esp, 4
mov dword [esp + 0x1c], eax
jmp 0x401831
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret