Function at 0x4182f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x450
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x42b460
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x45c]
push eax
call fcn.00418670
add esp, 4
mov eax, dword [ebp - 0x45c]
cmp eax, 0x80000000
jne 0x41839c
cmp byte [ebp - 0x458], 3
jne 0x41855e
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x2c], edi
mov ecx, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
push ecx
mov dword [ebp - 0x24], eax
call dword [eax]
add esp, 4
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x418556
mov edx, dword [eax + 8]
cmp edx, 9
jae 0x41854e
mov ecx, dword [ebp - 0x20]
call fcn.00425a4f
jmp 0x418556
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x2c], edi
mov edi, 0x200
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], ecx
cmp edi, 0x201
jae 0x418400
jmp 0x4183ee
jbe 0x418489
cmp edi, 0x201
jae 0x418400
mov dword [ebp - 0x20], 0x200
lea ebx, [ebp - 0x45c]
mov esi, edi
jmp 0x418431
mov esi, dword [ebp - 0x4c]
sub edi, esi
je 0x418425
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x38]
mov edx, esi
push edi
call fcn.0043a930
add esp, 4
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x4c], esi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push esi
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x418458
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4184dd
cmp edi, esi
jne 0x4183e0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x418597
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x4183ee
jmp 0x418400
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
cmp edi, edx
ja 0x4185b7
lea ecx, [ebp - 0x5c]
mov edx, ebx
push edi
call fcn.00416500
add esp, 4
mov esi, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x58]
movq xmm0, qword [ebp - 0x54]
cmp dword [ebp - 0x38], 0
je 0x4184cc
mov ecx, dword [ebp - 0x34]
movdqu xmmword [ebp - 0x4c], xmm0
call fcn.00425a4f
movdqu xmm0, xmmword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
cmp esi, 0x80000000
jne 0x41853c
movd esi, xmm0
jmp 0x4184f8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp dword [ebp - 0x38], 0
mov esi, eax
je 0x4184f3
mov ecx, dword [ebp - 0x34]
call fcn.00425a4f
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x418546
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x28], eax
push eax
mov dword [ebp - 0x4c], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x20]
cmp dword [eax + 4], 0
je 0x41856e
mov edx, dword [eax + 8]
cmp edx, 9
jae 0x418566
mov ecx, dword [ebp - 0x28]
call fcn.00425a4f
jmp 0x41856e
mov dword [eax], esi
mov dword [eax + 4], ebx
movq qword [eax + 8], xmm0
cmp dword [ebp - 0x3c], 0
jne 0x41857b
jmp 0x418583
mov ecx, dword [ebp - 0x20]
call fcn.00425a64
mov ecx, dword [ebp - 0x4c]
call fcn.00425a4f
mov dword [edi], 0x80000000
jmp 0x418583
mov ecx, dword [ebp - 0x28]
call fcn.00425a64
mov ecx, esi
call fcn.00425a4f
cmp dword [ebp - 0x3c], 0
je 0x418583
mov ecx, dword [ebp - 0x24]
call fcn.00425a4f
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x450
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 3
mov ecx, str.internal_error:_entered_unreachable_code__D
mov edx, 0x28
push 0x4418e4
call fcn.00439dd0
add esp, 4
jmp 0x4185c6
mov ecx, edi
push 0x4418d4
call fcn.00439d70
add esp, 4
ud2