Function at 0x401600
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, 0x188
mov dword [esp + 0xd0], 0
jmp 0x40170d
mov eax, dword [sym.imp.ole32.dll_CoRevertToSelf]
call eax
mov dword [esp + 0x9c], eax
jmp 0x40163e
mov dword [esp + 0x184], 0
jmp 0x401a18
jmp 0x4018cd
jmp 0x401645
mov eax, esp
mov dword [eax], 0x522882
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
call eax
sub esp, 4
mov dword [esp + 0x98], eax
jmp 0x401a43
cmp dword [esp + 0xcc], 0x227
jne 0x401833
jmp 0x4018e5
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 + 0x94], eax
call ecx
sub esp, 4
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x90], eax
call ecx
mov ecx, esp
mov dword [ecx], 0x8972de
mov ecx, dword [sym.imp.USER32.dll_BringWindowToTop]
mov dword [esp + 0x8c], 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 + 0x88], eax
call sub.urlmon.dll_CoInternetSetFeatureEnabled
sub esp, 0xc
mov dword [esp + 0x84], eax
jmp 0x401a2e
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0xd0], 0xe
je 0x401706
lea eax, [esp + 0xc0]
mov ecx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [esp + 0x80], eax
call ecx
mov ecx, esp
mov dword [ecx + 4], 0x9e6c
mov dword [ecx], 0x54094
mov ecx, dword [sym.imp.ADVAPI32.dll_NotifyChangeEventLog]
mov dword [esp + 0x7c], eax
call ecx
sub esp, 8
mov ecx, esp
lea edx, [esp + 0xd8]
mov dword [ecx], edx
mov ecx, dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
mov dword [esp + 0x78], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xd60
mov ecx, dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov dword [esp + 0x74], 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 + 0x70], eax
call ecx
sub esp, 8
mov ecx, 0xa7e7c2
xor edx, edx
mov esi, 0xc
mov edi, dword [esp + 0x80]
mov dword [esp], edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], esi
call fcn.00598830
mov eax, dword [esp + 0x68]
mov dword [esp + 0xb8], eax
mov ecx, esp
lea edx, [esp + 0xb8]
mov dword [ecx + 0x14], edx
lea edx, [esp + 0xc0]
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 + 0xcc], 0
mov dword [esp + 0x5c], eax
jmp 0x401663
mov eax, dword [esp + 0xcc]
mov ecx, 0x88888889
mov dword [esp + 0x58], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x58]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
je 0x40161e
jmp 0x401866
mov eax, dword [esp + 0x54]
sub eax, 5
mov dword [esp + 0x4c], eax
jne 0x40163e
jmp 0x401879
mov eax, 0x8b39ac
mov dword [esp + 0xac], 0xead
mov dword [esp + 0xd4], eax
mov eax, esp
lea ecx, [esp + 0xac]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0xd4]
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 + 0x48], eax
jmp 0x40161e
mov eax, dword [esp + 0xcc]
add eax, 1
mov dword [esp + 0xcc], eax
jmp 0x401663
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 + 0xd0]
mov edx, 0xcc29786d
mov dword [esp + 0x44], 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 + 0x40], ecx
mov dword [esp + 0x3c], eax
je 0x401996
jmp 0x40192e
mov eax, dword [esp + 0x40]
sub eax, 0x3e
mov dword [esp + 0x38], eax
jne 0x40162e
jmp 0x401941
mov eax, esp
lea ecx, [esp + 0xb0]
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 + 0x34], 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 + 0x30], eax
call ecx
sub esp, 8
mov dword [esp + 0x2c], eax
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 + 0x28], eax
call ecx
sub esp, 4
mov word [esp + 0xbe], 0x1a
mov dword [esp + 0xa8], 0x170
mov ecx, esp
lea edx, [esp + 0xa0]
mov dword [ecx + 0x18], edx
lea edx, [esp + 0xa8]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], edx
lea edx, [esp + 0xbe]
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 + 0x24], eax
call ecx
sub esp, 0x1c
mov dword [esp + 0x20], eax
jmp 0x401645
cmp dword [esp + 0x184], 0xa
jne 0x401679
jmp 0x401643
mov eax, dword [esp + 0x184]
add eax, 1
mov dword [esp + 0x184], eax
jmp 0x401a18
mov eax, dword [esp + 0xd0]
add eax, 1
mov dword [esp + 0xd0], eax
jmp 0x40170d