Function at 0x455bb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push ebx
push ebp
shl eax, 4
add eax, dword [edx + 8]
push esi
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x455bd9
push edi
call fcn.0046f110
lea eax, [eax + edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], ebx
test eax, eax
je 0x455dd0
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi]
test eax, eax
je 0x455dd0
jmp 0x455c00
cmp ebx, eax
jae 0x455c12
mov cl, byte [ebx]
mov byte [edi], cl
inc ebx
inc edi
cmp ebx, eax
jb 0x455c04
mov dword [esp + 0x10], ebx
mov esi, dword [esi + 4]
movzx eax, byte [esi + 0x17]
mov ebp, edi
cmp eax, 3
ja case.default.0x455c24
jmp dword [eax*4 + 0x455dfc]
mov eax, esi
call fcn.00401150
cmp dword [0x4a2d94], 0
jne 0x455ce9
cmp dword [esi + 0xc], 0
jne 0x455ce9
cmp dword [0x4a5d20], esi
jne 0x455c55
test edi, edi
jne 0x455cae
mov eax, dword [esi + 0x18]
push 0
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x455caa
mov dword [0x4a5d20], 0
test edi, edi
je 0x455ca4
mov eax, dword [0x4a2d74]
test eax, eax
je 0x455c97
mov ecx, dword [esi + 0x18]
push ecx
push str.Using_value_of_environment_variable.
push eax
push 0x4a4ca0
xor ecx, ecx
call fcn.0042d3e0
mov ecx, dword [esi + 0x18]
call fcn.0046d740
jmp 0x455daf
dec eax
jmp 0x455daf
test edi, edi
je 0x455cdc
cmp byte [esi + 0x17], 0
jne 0x455cb9
mov eax, dword [esi + 0xc]
jmp 0x455cbb
mov eax, esi
test byte [eax + 0x15], 4
je 0x455cc8
mov eax, esi
call fcn.0042d510
mov byte [edi], 0
mov dword [0x4a5d20], 0
xor eax, eax
jmp 0x455daf
mov dword [0x4a5d20], esi
xor eax, eax
jmp 0x455daf
mov ebx, dword [esi + 0xc]
test edi, edi
jne 0x455cfb
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x455daf
test ebx, ebx
jne 0x455d24
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x455d16
mov eax, esi
call fcn.0042d510
mov ebx, dword [esp + 0x10]
mov byte [edi], 0
xor eax, eax
jmp 0x455daf
mov ecx, dword [esi + 8]
cmp edi, ecx
jne 0x455d33
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x455daf
cmp ebx, 0x186a0
jae 0x455d58
mov al, byte [ecx]
test al, al
je 0x455d4c
inc ecx
mov byte [ebp], al
mov al, byte [ecx]
inc ebp
test al, al
jne 0x455d41
mov eax, ebx
mov ebx, dword [esp + 0x10]
mov byte [ebp], 0
jmp 0x455daf
push ebx
push ecx
push edi
call fcn.00487060
mov byte [ebx + edi], 0
mov eax, ebx
mov ebx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x455daf
mov ecx, dword [esi + 0xc]
push edi
call fcn.0046f110
jmp 0x455daf
push 0x4a4c84
mov ecx, edi
call fcn.00403c10
cmp eax, 0xffffffff
jne 0x455d8d
xor eax, eax
test edi, edi
je 0x455daf
mov byte [eax + edi], 0
jmp 0x455daf
test edi, edi
je 0x455d9e
mov byte [edi], 0
xor eax, eax
jmp 0x455daf
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push edx
push edi
call eax
add esp, 8
mov esi, dword [esp + 0x14]
movzx ecx, word [esi + 0xa]
add esi, 0xc
add edi, eax
mov eax, dword [esi]
add ebx, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
test eax, eax
jne 0x455c00
mov al, byte [ebx]
test al, al
je 0x455deb
mov ecx, ebx
sub ecx, edi
lea ebx, [ebx]
mov byte [edi], al
mov al, byte [ecx + edi + 1]
inc edi
test al, al
jne 0x455de0
mov byte [edi], 0
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4