Function at 0x460110
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, edi
and eax, 0xff
sub eax, 0x20
je 0x460241
dec eax
jne 0x4602ca
cmp dword [0x56bd28], ebx
je 0x460180
push 0x538bcc
lea eax, [ebp - 0x410]
push 0x103
push eax
push 0xffffffffffffffff
mov ecx, 0x56bcc8
call fcn.0040c560
jmp 0x460220
cmp dword [0x5389d0], 2
jne 0x460220
mov ecx, 0x56bcc8
call fcn.0040ac70
cmp eax, ebx
je 0x4601c2
lea ecx, [ebp - 0x410]
push 0x103
push ecx
push 0x55859c
push eax
call fcn.0044fa00
add esp, 0x10
cmp word [ebp - 0x410], bx
jne 0x4602d7
mov edx, dword [0x56c754]
cmp edx, ebx
je 0x460220
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
push edx
push str.Sessions
push str._s_d
lea edx, [ebp - 0x208]
push 0x103
push edx
stosw word es:[edi], ax
call esi
add esp, 0x14
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x410]
push eax
push 0x103
push ecx
mov ecx, 0x56bcc8
call fcn.0040c4e0
mov edi, dword [ebp + 0x14]
cmp word [ebp - 0x410], bx
jne 0x4602d7
cmp word [0x59d574], bx
je 0x46040a
push 0x59d574
jmp 0x4602b4
cmp dword [0x56bd28], ebx
je 0x460268
push str.IECache
lea eax, [ebp - 0x410]
push 0x103
push eax
push 0xffffffffffffffff
mov ecx, 0x56bcc8
call fcn.0040c560
jmp 0x460299
cmp dword [0x5389d0], 2
jne 0x460299
mov ecx, 0x56bcc8
call fcn.0040ac70
cmp eax, ebx
je 0x460299
lea ecx, [ebp - 0x410]
push 0x103
push ecx
push str._tmp:
push eax
call fcn.0044fa00
add esp, 0x10
cmp word [ebp - 0x410], bx
jne 0x4602d7
cmp word [0x59d36c], bx
je 0x46040a
push 0x59d36c
push 0x5384a4
lea edx, [ebp - 0x410]
push 0x103
push edx
call esi
add esp, 0x10
cmp word [ebp - 0x410], bx
je 0x46040a
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x616]
mov word [ebp - 0x618], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x618]
push 0x104
lea ecx, [ebp - 0x410]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x618]
lea eax, [ebp - 0x208]
push edx
push 0x56bf34
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x208]
push 1
push ecx
call fcn.0043f390
lea edx, [ebp - 0x208]
push edx
call fcn.0043f620
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov word [ebp + eax*2 - 0x20a], bx
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, ebx
je 0x46039d
mov edx, dword [ebp + 0x20]
lea ecx, [ebp - 0x208]
push ecx
push 0x5384a4
push 0x103
push edx
call esi
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0x624]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 0x208]
test eax, eax
jne 0x4603ab
xor esi, esi
jmp 0x4603e1
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0051c5a0
mov esi, esp
push ebx
push ebx
push edi
push esi
lea edx, [ebp - 0x208]
push 0xffffffffffffffff
push edx
push ebx
push ebx
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0x20]
push esi
push 0x539528
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0x624]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 8], ebx
je 0x460432
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push edi
push ecx
call dword [ebp + 0xc]
lea esp, [ebp - 0x624]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edi
push edx
call dword [ebp + 0xc]
lea esp, [ebp - 0x624]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c