Function at 0x45b4c0
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 0x45b4e9
push edi
call fcn.00477d60
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 0x45b6df
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi]
test eax, eax
je 0x45b6df
jmp 0x45b510
cmp ebx, eax
jae 0x45b522
mov cl, byte [ebx]
mov byte [edi], cl
inc ebx
inc edi
cmp ebx, eax
jb 0x45b514
mov dword [esp + 0x10], ebx
mov esi, dword [esi + 4]
movzx eax, byte [esi + 0x17]
mov ebp, edi
cmp eax, 3
ja case.default.0x45b534
jmp dword [eax*4 + 0x45b70c]
mov eax, esi
call fcn.004011b0
cmp dword [0x4ae3c0], 0
jne 0x45b5f9
cmp dword [esi + 0xc], 0
jne 0x45b5f9
cmp dword [0x4b027c], esi
jne 0x45b565
test edi, edi
jne 0x45b5be
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 0x45b5ba
mov dword [0x4b027c], 0
test edi, edi
je 0x45b5b4
mov eax, dword [0x4ae39c]
test eax, eax
je 0x45b5a7
mov ecx, dword [esi + 0x18]
push ecx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4af210
xor ecx, ecx
call fcn.00430380
mov ecx, dword [esi + 0x18]
call fcn.00475d90
jmp 0x45b6be
dec eax
jmp 0x45b6be
test edi, edi
je 0x45b5ec
cmp byte [esi + 0x17], 0
jne 0x45b5c9
mov eax, dword [esi + 0xc]
jmp 0x45b5cb
mov eax, esi
test byte [eax + 0x15], 4
je 0x45b5d8
mov eax, esi
call fcn.00430490
mov byte [edi], 0
mov dword [0x4b027c], 0
xor eax, eax
jmp 0x45b6be
mov dword [0x4b027c], esi
xor eax, eax
jmp 0x45b6be
mov ebx, dword [esi + 0xc]
test edi, edi
jne 0x45b60b
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x45b6be
test ebx, ebx
jne 0x45b634
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x45b626
mov eax, esi
call fcn.00430490
mov ebx, dword [esp + 0x10]
mov byte [edi], 0
xor eax, eax
jmp 0x45b6be
mov ecx, dword [esi + 8]
cmp edi, ecx
jne 0x45b643
mov eax, ebx
mov ebx, dword [esp + 0x10]
jmp 0x45b6be
cmp ebx, 0x186a0
jae 0x45b668
mov al, byte [ecx]
test al, al
je 0x45b65c
inc ecx
mov byte [ebp], al
mov al, byte [ecx]
inc ebp
test al, al
jne 0x45b651
mov eax, ebx
mov ebx, dword [esp + 0x10]
mov byte [ebp], 0
jmp 0x45b6be
push ebx
push ecx
push edi
call fcn.00490240
mov byte [ebx + edi], 0
mov eax, ebx
mov ebx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x45b6be
mov ecx, dword [esi + 0xc]
push edi
call fcn.00477d60
jmp 0x45b6be
push edi
mov ecx, 0x4af1f4
call fcn.00404640
cmp eax, 0xffffffff
jne 0x45b69c
xor eax, eax
test edi, edi
je 0x45b6be
mov byte [eax + edi], 0
jmp 0x45b6be
test edi, edi
je 0x45b6ad
mov byte [edi], 0
xor eax, eax
jmp 0x45b6be
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 0x45b510
mov al, byte [ebx]
test al, al
je 0x45b6fb
mov ecx, ebx
sub ecx, edi
lea esp, [esp]
mov byte [edi], al
mov al, byte [ecx + edi + 1]
inc edi
test al, al
jne 0x45b6f0
mov byte [edi], 0
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4