Function at 0x4113ea
Capabilities:
Query environment variable

Disassembly:
push 0x24
mov eax, 0x504bf8
call fcn.004e3d00
and dword [ebp - 4], 0
lea ebx, [ebp + 0xc]
mov byte [ebp - 0xd], 1
call fcn.0040dbe8
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0xb
jge 0x41141e
lea ecx, [eax - 0x10]
call fcn.0040285b
mov al, 1
jmp 0x411711
push 9
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00407984
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004140e6
mov ebx, edi
call fcn.0040dbe8
push str.rundll32
xor ecx, ecx
mov esi, edi
call fcn.0040788c
cmp eax, 0xffffffff
jne 0x411465
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
jmp 0x411412
xor ebx, ebx
inc ebx
cmp eax, ebx
mov eax, dword [ebp - 0x14]
jne 0x4114a2
cmp dword [eax - 0xc], 0
jge 0x41147f
push 0x80070057
call fcn.0040298d
movzx ecx, word [eax]
cmp cx, 0x22
je 0x4114a2
lea ecx, [eax - 0x10]
call fcn.0040285b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285b
mov al, bl
jmp 0x411711
lea ecx, [eax - 0x10]
mov byte [ebp - 4], 0
call fcn.0040285b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov ecx, eax
shl ecx, 3
mov ebx, 0x800
cmp ecx, ebx
jl 0x4114c7
mov ebx, eax
shl ebx, 3
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bd34c
lea edi, [ebx + ebx]
push edi
mov esi, eax
push 0
push esi
call fcn.004e38a0
add esp, 0x10
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
push esi
lea ecx, [ebp + 0xc]
mov word [edi + esi - 2], ax
call fcn.00402719
push esi
call fcn.004bd341
pop ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402305
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004c92aa
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
call esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00402719
xor edi, edi
jmp 0x411561
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.004c96e8
push dword [ebp - 0x18]
call esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00402719
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], edi
jne 0x411544
cmp dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
jle 0x4116ec
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.004370b9
push eax
lea ecx, [ebp - 0x14]
call fcn.00402305
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004140e6
mov ebx, edi
call fcn.0040dbe8
call fcn.0040db9b
push str.rundll32
xor ecx, ecx
mov esi, edi
call fcn.0040788c
cmp eax, 0xffffffff
je 0x4115ce
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
push eax
mov ecx, edi
call fcn.00402719
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4115f2
push dword [ebp + 0x28]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x24]
lea edx, [ebp - 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00411bba
test al, al
je 0x411615
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x28]
jl 0x411575
jmp 0x4116ec
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 0xd], 0
call fcn.0040285b
push 0
push 0x2c
lea ecx, [ebp + 0xc]
call fcn.00414092
mov edi, eax
test edi, edi
jl 0x4116ec
lea ebx, [edi + 1]
push ebx
push 0x2c
lea ecx, [ebp + 0xc]
call fcn.00414092
push ebx
push 0x20
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.00414092
mov ebx, eax
cmp ebx, edi
jge 0x41167d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004c9586
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
xor bl, bl
jmp 0x411490
cmp esi, edi
jge 0x411692
push ebx
push 0x2d
lea ecx, [ebp + 0xc]
call fcn.00414092
mov esi, eax
cmp esi, edi
jl 0x41165f
sub esi, ebx
push esi
push ebx
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp + 0xc]
call fcn.00407906
lea ebx, [ebp + 0x28]
mov byte [ebp - 4], 5
call fcn.0040dbe8
call fcn.0040db9b
mov esi, dword [ebp + 0x28]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
test eax, eax
je 0x4116e7
call fcn.0040285b
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004c9586
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
mov bl, 1
jmp 0x411490
call fcn.0040285b
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004c9586
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285b
mov al, byte [ebp - 0xd]
call fcn.004e3dd8
ret 0x24