Function at 0x401740
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 + 0x188], 0
cmp dword [esp + 0x188], 0xe
jne 0x40182c
jmp 0x40177c
mov eax, dword [sym.imp.ole32.dll_CoRevertToSelf]
call eax
mov dword [esp + 0x9c], eax
jmp 0x401783
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
jmp 0x4019f0
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 + 0x98], eax
call ecx
sub esp, 4
mov word [esp + 0xae], 0x1a
mov dword [esp + 0xb4], 0x170
mov ecx, esp
lea edx, [esp + 0xb8]
mov dword [ecx + 0x18], edx
lea edx, [esp + 0xb4]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], edx
lea edx, [esp + 0xae]
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 + 0x94], eax
call ecx
sub esp, 0x1c
mov dword [esp + 0x90], eax
mov eax, esp
mov dword [eax], 0x522882
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
call eax
sub esp, 4
mov dword [esp + 0x8c], eax
jmp 0x401b70
mov eax, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call eax
lea ecx, [esp + 0xc8]
mov edx, esp
mov dword [edx + 4], 0x9e6c
mov dword [edx], 0x54094
mov edx, dword [sym.imp.ADVAPI32.dll_NotifyChangeEventLog]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ecx
call edx
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 + 0x80], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xd60
mov ecx, dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov dword [esp + 0x7c], 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 + 0x78], 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 + 0x74], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], esi
call fcn.00598840
mov eax, dword [esp + 0x70]
mov dword [esp + 0xa8], eax
mov ecx, esp
lea edx, [esp + 0xa8]
mov dword [ecx + 0x14], edx
lea edx, [esp + 0xc8]
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 + 0x184], 0
mov dword [esp + 0x64], eax
cmp dword [esp + 0x184], 0x227
je 0x401a08
mov eax, dword [esp + 0x184]
mov ecx, 0x88888889
mov dword [esp + 0x60], eax
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov ecx, dword [esp + 0x60]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
je 0x40176c
jmp 0x401989
mov eax, dword [esp + 0x5c]
sub eax, 5
mov dword [esp + 0x54], eax
jne 0x401783
jmp 0x40199c
mov eax, 0x8b39ac
mov dword [esp + 0x18c], 0xead
mov dword [esp + 0xc4], eax
mov eax, esp
lea ecx, [esp + 0x18c]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0xc4]
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 + 0x50], eax
jmp 0x40176c
mov eax, dword [esp + 0x184]
add eax, 1
mov dword [esp + 0x184], eax
jmp 0x401945
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 + 0x188]
mov edx, 0xcc29786d
mov dword [esp + 0x4c], 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 + 0x48], ecx
mov dword [esp + 0x44], eax
je 0x401788
jmp 0x401a55
mov eax, dword [esp + 0x48]
sub eax, 0x3e
mov dword [esp + 0x40], eax
jne 0x401abe
jmp 0x401a64
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 + 0x3c], 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 + 0x38], eax
call ecx
sub esp, 8
mov dword [esp + 0x34], eax
jmp 0x401788
mov dword [esp + 0xb0], 0
cmp dword [esp + 0xb0], 0xa
je 0x401b6b
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
mov eax, dword [esp + 0xb0]
add eax, 1
mov dword [esp + 0xb0], eax
jmp 0x401ac9
jmp 0x40180e
mov eax, dword [esp + 0x188]
add eax, 1
mov dword [esp + 0x188], eax
jmp 0x401759