Function at 0x415937
Capabilities:
Query environment variable

Disassembly:
push 8
mov eax, 0x45773f
call fcn.0042794e
mov ebx, dword [ebp + 8]
push ebx
call fcn.004164c3
mov esi, dword [ebp + 0xc]
mov edx, eax
pop ecx
mov ecx, dword [esi]
dec ecx
cmp ecx, 0xc
ja case.0x41595e.5
jmp dword [ecx*4 + 0x415d63]
cmp dword [esi + 4], 0xc350
jne 0x415980
push ebx
call fcn.00415ea7
pop ecx
test al, al
je 0x415980
push 0
jmp 0x415d47
and dword [ebp + 0xc], 0
and dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
push ecx
push 0x45c948
push 0x2710
mov eax, dword [ebx]
push ebx
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4159ac
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
test eax, eax
je case.0x41595e.5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp case.0x41595e.5
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 1
push ecx
push 0x45c958
push 0x271f
jmp 0x415996
and dword [ebp - 0x10], 0
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
push 0x45c948
push 0x2710
push ebx
mov dword [ebp - 4], 2
call dword [eax + 0x38]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x415a0c
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
jmp 0x415a46
and dword [ebp + 0xc], 0
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x45c968
push 0x2715
push ebx
mov byte [ebp - 4], 3
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x415a38
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
test eax, eax
je 0x415a46
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
jmp 0x4159ac
and dword [ebp + 0xc], 0
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x45c968
push 0x2715
push ebx
mov dword [ebp - 4], 4
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4159ac
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
jmp 0x4159a9
and dword [ebp + 0xc], 0
cmp dword [esi + 4], 0xc368
jne 0x415ac7
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x45c978
push 0x271a
push ebx
mov dword [ebp - 4], 5
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x415ab8
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push 1
push ebx
call fcn.0041564f
pop ecx
pop ecx
jmp 0x4159a9
cmp dword [esi + 4], 0xc352
mov eax, dword [ebx]
jne 0x415b31
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 6
push ecx
push 0x45c958
push 0x271f
push ebx
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4159ac
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x14], 1
je 0x4159a9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
je 0x4159a9
push 0
push dword [esi + 0x2c]
push dword [esi + 0x28]
push ebx
call fcn.00415746
add esp, 0x10
jmp 0x4159a9
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 7
push ecx
push 0x45c978
push 0x271a
jmp 0x415998
and dword [ebp + 0xc], 0
cmp dword [esi + 4], 0xc368
jne 0x415b87
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x45c978
push 0x271a
push ebx
mov dword [ebp - 4], 8
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x415b80
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push 0
jmp 0x415aba
cmp dword [esi + 4], 0xc352
mov eax, dword [ebx]
jne 0x415bc9
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 9
push ecx
push 0x45c958
push 0x271f
push ebx
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4159ac
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x14], 0
jmp 0x415b04
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xa
push ecx
push 0x45c978
push 0x271a
push ebx
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4159ac
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x4159a9
cmp dword [esi + 4], 0xc353
mov eax, dword [esi + 0x14]
jne 0x415c18
push eax
push 0
push 0x14d
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x41595e.5
add eax, 0xfffffff0
push eax
call fcn.004029da
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [esi + 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xb
mov dword [esp], 0x104
call fcn.00405176
push 0x104
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004058e5
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004053a6
and dword [ebp + 0xc], 0
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
push ecx
push 0x45c988
push 0x2712
push ebx
mov byte [ebp - 4], 0xc
call dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x415cdc
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
je 0x415d5c
mov eax, dword [ebp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x415cd9
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x14], edi
call fcn.004029da
pop ecx
add eax, 0x10
push ebx
mov dword [edi], eax
call fcn.004168ea
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x415cea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi - 0x10]
call fcn.0040538e
jmp case.0x41595e.5
and dword [ebp - 0x14], 0
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
push 0x45c998
push 0x2714
push ebx
mov dword [ebp - 4], 0xd
call dword [eax + 0x38]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4159ac
movsd xmm0, qword [0x45c9a8]
sub esp, 0x10
mov ecx, dword [eax]
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
movsd qword [esp], xmm0
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x4159ac
push 1
push dword [esi + 0x2c]
push dword [esi + 0x28]
push ebx
call fcn.00415746
add esp, 0x10
call fcn.0042791c
ret
call fcn.00405ce0
nop
pop ecx
inc ecx
add byte [ecx + 0x59], bh
inc ecx
add byte [ebp + 0x5d], al
inc ecx
add al, bh
pop ebx
inc ecx
add byte [esi + 0x5d], dl
inc ecx
add byte [ebx + 0x4b00415a], al
pop ebx
inc ecx
add bl, al
pop ecx
inc ecx
add dh, bl
pop ecx
inc ecx
add byte [esi + 0x5a], cl
inc ecx
add ah, dh
pop esp
inc ecx
add byte [esi + 0x5d], dl
inc ecx
add byte [esi + 0x5d], dl
inc ecx
add byte [edx + 0x1c], ch
push 0x1c