Function at 0x401800
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 + 0xa8], 0
cmp dword [esp + 0xa8], 0xe
jne 0x4018f0
jmp 0x401877
mov eax, esp
mov dword [eax], 0x522882
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
call eax
sub esp, 4
mov dword [esp + 0x9c], eax
jmp 0x401c39
mov eax, dword [esp + 0xac]
add eax, 1
mov dword [esp + 0xac], eax
jmp 0x401baa
mov eax, dword [sym.imp.ole32.dll_CoRevertToSelf]
call eax
mov dword [esp + 0x98], eax
jmp 0x401aae
jmp 0x40182c
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
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 + 0xa8]
mov edx, 0xcc29786d
mov dword [esp + 0x94], 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 + 0x90], ecx
mov dword [esp + 0x8c], eax
je 0x401b1d
jmp 0x4018d4
mov eax, dword [esp + 0x90]
sub eax, 0x3e
mov dword [esp + 0x88], eax
je 0x401ac8
jmp 0x401b9f
lea eax, [esp + 0xb8]
mov ecx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [esp + 0x84], 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 + 0x80], 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 + 0x7c], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xd60
mov ecx, dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov dword [esp + 0x78], 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 + 0x74], eax
call ecx
sub esp, 8
mov ecx, 0xa7e7c2
xor edx, edx
mov esi, 0xc
mov edi, dword [esp + 0x84]
mov dword [esp], edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0xc
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], esi
call fcn.00598900
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18c], eax
mov ecx, esp
lea edx, [esp + 0x18c]
mov dword [ecx + 0x14], edx
lea edx, [esp + 0xb8]
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 + 0x60], eax
cmp dword [esp + 0xcc], 0x227
je 0x40187e
mov eax, dword [esp + 0xcc]
mov ecx, 0x88888889
mov dword [esp + 0x5c], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x5c]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
je 0x401862
jmp 0x401a4b
mov eax, dword [esp + 0x58]
sub eax, 5
mov dword [esp + 0x50], eax
jne 0x401aae
jmp 0x401a5a
mov eax, 0x8b39ac
mov dword [esp + 0xc8], 0xead
mov dword [esp + 0xa0], eax
mov eax, esp
lea ecx, [esp + 0xc8]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0xa0]
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 + 0x4c], eax
jmp 0x401862
jmp 0x401ab0
mov eax, dword [esp + 0xcc]
add eax, 1
mov dword [esp + 0xcc], eax
jmp 0x401a07
mov eax, esp
lea ecx, [esp + 0xd0]
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 + 0x48], 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 + 0x44], eax
call ecx
sub esp, 8
mov dword [esp + 0x40], 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 + 0x3c], eax
call ecx
sub esp, 4
mov word [esp + 0x18a], 0x1a
mov dword [esp + 0xa4], 0x170
mov ecx, esp
lea edx, [esp + 0xb0]
mov dword [ecx + 0x18], edx
lea edx, [esp + 0xa4]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], edx
lea edx, [esp + 0x18a]
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 + 0x38], eax
call ecx
sub esp, 0x1c
mov dword [esp + 0x34], eax
jmp 0x40182c
mov dword [esp + 0xac], 0
cmp dword [esp + 0xac], 0xa
je 0x401875
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 + 0x30], eax
call ecx
sub esp, 4
mov ecx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
mov dword [esp + 0x2c], eax
call ecx
mov ecx, esp
mov dword [ecx], 0x8972de
mov ecx, dword [sym.imp.USER32.dll_BringWindowToTop]
mov dword [esp + 0x28], 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 + 0x24], eax
call sub.urlmon.dll_CoInternetSetFeatureEnabled
sub esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x40184a
mov eax, dword [esp + 0xa8]
add eax, 1
mov dword [esp + 0xa8], eax
jmp 0x401819