Function at 0x417ba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x458
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x42ad60
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 - 0x464]
push eax
call fcn.00414fe0
add esp, 4
cmp dword [ebp - 0x464], 0
je 0x417c56
cmp byte [ebp - 0x460], 3
jne 0x417d77
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x2c], edi
mov eax, dword [ecx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 0
push eax
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x417c42
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x417c33
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x417d77
mov ecx, dword [ebp - 0x45c]
test ecx, ecx
je 0x417d77
mov edx, dword [ebp - 0x460]
mov eax, dword [ebp - 0x458]
mov esi, 0x200
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x5c], eax
cmp esi, 0x201
jae 0x417ce0
jmp 0x417cce
jbe 0x417d8f
cmp esi, 0x201
jae 0x417ce0
lea edi, [ebp - 0x464]
mov dword [ebp - 0x38], 0x200
mov ebx, esi
jmp 0x417d1b
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
sub esi, ebx
sub eax, ebx
cmp eax, esi
jae 0x417d0c
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x44]
mov edx, ebx
push esi
call fcn.0043a550
add esp, 4
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x417d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417e8a
cmp esi, ebx
jne 0x417cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x417ea6
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x417cce
jmp 0x417ce0
mov byte [edi + 0xc], 2
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x458
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], 3
cmp esi, edx
ja 0x417ec6
lea ecx, [ebp - 0x58]
mov edx, edi
push esi
call fcn.00415ed0
add esp, 4
mov eax, dword [ebp - 0x50]
movzx edx, word [ebp - 0x4b]
movzx ecx, byte [ebp - 0x49]
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
movzx ebx, byte [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov word [ebp - 0x28], dx
mov byte [ebp - 0x26], cl
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x417de6
push dword [ebp - 0x34]
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp bl, 2
jne 0x417e4a
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0xc], 2
mov eax, esi
mov esi, dword [ebp - 0x24]
cmp al, 3
jne 0x417e6c
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], 2
push eax
mov dword [ebp - 0x20], edi
call dword [ecx]
add esp, 4
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov ecx, dword [edi + 4]
cmp dword [ecx + 4], 0
je 0x417e39
mov eax, dword [edi]
cmp dword [ecx + 8], 9
jb 0x417e2a
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x417e6c
movzx eax, word [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov bh, byte [ebp - 0x26]
mov edx, dword [ebp - 0x30]
mov word [ecx + 0xd], ax
mov byte [ecx + 0xf], bh
mov dword [ecx], esi
mov esi, dword [ebp - 0x24]
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
mov byte [ecx + 0xc], bl
cmp dword [ebp - 0x48], 0
je 0x417d7b
push esi
push 0
push dword [0x4489c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x417d7b
mov bl, 2
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x417dd5
jmp 0x417de6
mov dword [ebp - 0x10], 3
mov ecx, str.internal_error:_entered_unreachable_code
mov edx, 0x28
push 0x43f484
call fcn.004397f0
add esp, 4
jmp 0x417ed5
mov ecx, esi
push 0x43f494
call fcn.004397e0
add esp, 4
ud2