Function at 0x4bad20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.00410210
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.0047ef80
cmp dword [ebp - 8], eax
jge 0x4bb004
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.004214b0
movzx ecx, ax
cmp ecx, 0x25
jne 0x4bafc7
mov edx, dword [ebp - 8]
add edx, 1
push edx
push 0x25
mov ecx, dword [ebp + 8]
call fcn.0045f030
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x4badc6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004214b0
mov word [ebp - 0x262], ax
movzx edx, word [ebp - 0x262]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0049aad0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4bad49
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
sub ecx, 1
push ecx
mov edx, dword [ebp - 8]
add edx, 1
push edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.00434540
mov ecx, eax
call fcn.00416e70
push eax
lea ecx, [ebp - 0x14]
call fcn.00418370
lea ecx, [ebp - 0x238]
call fcn.004335b0
lea ecx, [ebp - 0x10]
call fcn.004aa750
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x240]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004bdee0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004bdeb0
push eax
lea ecx, [ebp - 0x10]
call fcn.0047f760
movzx ecx, al
test ecx, ecx
je 0x4bae7f
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
call fcn.0048e470
add eax, 4
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0041d780
lea ecx, [ebp - 0x14]
call fcn.0047ef80
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
cmp dword [ebp - 0x1c], 0
jne 0x4baef4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004bdee0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x258]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004bdeb0
push eax
lea ecx, [ebp - 0x10]
call fcn.0047f760
movzx edx, al
test edx, edx
je 0x4baef4
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
call fcn.0048e470
add eax, 4
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0041d780
lea ecx, [ebp - 0x14]
call fcn.0047ef80
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
cmp dword [ebp - 0x1c], 0
jne 0x4bafbd
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
add ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00434540
mov ecx, eax
call fcn.00416e70
push eax
lea ecx, [ebp - 0x234]
call fcn.00418370
lea ecx, [ebp - 0x25c]
call fcn.004335b0
push 0x104
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x234]
call fcn.0044ea20
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x104
ja 0x4baf8b
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040e800
lea ecx, [ebp - 0x14]
call fcn.0047ef80
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x4bafb2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0041d780
lea ecx, [ebp - 0x234]
call fcn.0047ef80
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x234]
call fcn.004335b0
lea ecx, [ebp - 0x14]
call fcn.004335b0
jmp 0x4bafff
mov edx, dword [ebp - 8]
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x268]
push eax
mov ecx, dword [ebp + 8]
call fcn.004214b0
mov word [ebp - 0x26a], ax
movzx ecx, word [ebp - 0x26a]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0049aad0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x4bad49
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004eabb3
mov esp, ebp
pop ebp
ret