Function at 0x11047270
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11181061
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x111ec774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 4]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x48c], eax
xor eax, eax
mov esi, edx
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x480], ecx
mov ecx, dword [0x111ee308]
mov edx, 0x50
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
mov byte [ebp - 0x440], al
mov word [ebp - 0x464], dx
mov edx, dword [ecx]
push eax
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x494], eax
mov eax, dword [edx + 0x1c]
push 1
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x49c], edi
call eax
push 0
push 0
push 0x1119eed8
push 0x111a0f40
mov ecx, edi
mov dword [ebp - 0x484], eax
call fcn.1105e820
test eax, eax
jne 0x11047366
push eax
push eax
push 0x1119b9b4
push 0x111a0f40
mov ecx, edi
call fcn.1105e820
test eax, eax
je 0x11047370
cmp dword [ebp - 0x484], 0
jne 0x11047370
mov eax, 5
jmp 0x11047a9b
push 0
push 0
push 0x1119eec4
push 0x111a0f40
mov ecx, edi
call fcn.1105e820
test eax, eax
je 0x1104739c
cmp dword [ebp - 0x484], 0
jne 0x1104739c
mov eax, 0xfffffffb
jmp 0x11047a9b
push 0
lea edi, [esi + 2]
push edi
lea ecx, [ebp - 0x468]
call fcn.11146a90
push 0
push edi
lea ecx, [ebp - 0x474]
mov dword [ebp - 4], 0
call fcn.11146a90
mov edx, dword [ebp - 0x468]
cmp byte [edx], 0x20
mov byte [ebp - 4], 1
mov ebx, edx
jne 0x110473d9
inc ebx
cmp byte [ebx], 0x20
je 0x110473d3
mov eax, edi
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x110473e0
mov ecx, dword [ebp - 0x480]
sub eax, edi
lea eax, [esi + eax + 3]
add ecx, esi
cmp eax, ecx
jae 0x1104740e
push eax
call fcn.11163ca7
mov edx, dword [ebp - 0x468]
add esp, 4
mov dword [ebp - 0x494], eax
push 0x1119eebc
push edx
call fcn.11165250
add esp, 8
test eax, eax
jne 0x110474b3
mov edx, dword [ebp - 0x468]
push 0x21
push edx
call fcn.11081d30
add esp, 8
test eax, eax
je 0x110474b3
cmp dword [ebp - 0x484], 0
jne 0x11047486
mov ecx, dword [ebp - 0x488]
mov eax, 0xfffb
push 1
mov word [ebp - 0x462], ax
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 4
lea eax, [ebp - 0x464]
push eax
call edx
mov eax, dword [ebp - 0x474]
push eax
call fcn.11162777
mov ecx, dword [ebp - 0x468]
push ecx
call fcn.11162777
add esp, 8
jmp 0x11047ab6
mov edi, dword [ebp - 0x48c]
mov ecx, esi
call fcn.11042a90
mov edx, dword [ebp - 0x474]
push edx
call fcn.11162777
mov eax, dword [ebp - 0x468]
push eax
call fcn.11162777
add esp, 8
jmp 0x11047ab6
push 0x1119eeb0
push ebx
call fcn.11129e00
add esp, 8
test eax, eax
je 0x110474dd
call fcn.11028450
test eax, eax
je 0x110474dd
push 1
push 0x1119eea8
call fcn.11031b50
add esp, 8
push ebx
call fcn.1103b420
add esp, 4
mov dword [ebp - 0x480], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x110474f6
mov ebx, eax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x47c], esi
mov edi, ebx
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x478], 1
cmp byte [ebx], cl
je 0x11047552
mov al, byte [edi]
cmp al, 0x22
jne 0x11047527
xor edx, edx
cmp ecx, esi
sete dl
mov ecx, edx
jmp 0x1104752f
cmp al, 0x20
jne 0x1104752f
cmp ecx, esi
je 0x11047537
inc edi
cmp byte [edi], 0
jne 0x11047516
jmp 0x11047552
cmp byte [edi + 1], 0x20
lea eax, [edi + 1]
mov dword [ebp - 0x47c], eax
jne 0x11047552
inc eax
cmp byte [eax], 0x20
je 0x11047546
mov dword [ebp - 0x47c], eax
push 0x2e
push ebx
mov byte [edi], 0
call fcn.11081e00
mov esi, eax
add esp, 8
test esi, esi
je 0x1104758a
push 0x5c
push esi
call fcn.11081d30
add esp, 8
test eax, eax
jne 0x1104758a
push 0x2f
push esi
call fcn.11081d30
add esp, 8
test eax, eax
jne 0x1104758a
mov dword [ebp - 0x470], esi
cmp byte [ebx], 0x22
jne 0x11047590
inc ebx
cmp edi, ebx
jbe 0x110475a0
cmp byte [edi - 1], 0x22
jne 0x110475a0
mov byte [edi - 1], 0
jmp 0x110475a2
xor edi, edi
push 4
push 0x1119eea0
push ebx
mov dword [ebp - 0x48c], 0xffffffff
call fcn.11163dec
add esp, 0xc
test eax, eax
jne 0x11047608
movsx eax, byte [ebx + 4]
push eax
call fcn.111648ed
add esp, 4
test eax, eax
je 0x11047608
add ebx, 4
push ebx
call fcn.11163ca7
movsx ecx, byte [ebx]
push ecx
mov dword [ebp - 0x48c], eax
call fcn.111648ed
add esp, 8
test eax, eax
je 0x11047602
movsx edx, byte [ebx + 1]
inc ebx
push edx
call fcn.111648ed
add esp, 4
test eax, eax
jne 0x110475f0
cmp byte [ebx], 0x5c
jne 0x11047608
inc ebx
mov esi, dword [ebp - 0x470]
test esi, esi
jne 0x11047627
mov esi, 0x1119eebc
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x478], 0
mov byte [ebp - 0x110], 0
mov dword [ebp - 0x490], 0
call fcn.11026ab0
test eax, eax
jne 0x1104774e
push 0x1119eebc
push esi
call fcn.11081e70
add esp, 8
test eax, eax
je 0x1104774e
push 0x1119ee98
push esi
call fcn.11081e70
add esp, 8
test eax, eax
je 0x1104774e
push 0x1119ee90
push esi
call fcn.11081e70
add esp, 8
test eax, eax
je 0x1104774e
mov esi, dword [sym.imp.ShELL32.dll_FindExecutableA]
lea eax, [ebp - 0x110]
push eax
push 0x11195264
push ebx
call esi
cmp eax, 0x20
jg 0x11047735
mov ecx, dword [0x111ee308]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
push 0
push 0xffffffffffffffff
call eax
lea ecx, [ebp - 0x110]
push ecx
push 0x11195264
push ebx
call esi
mov ecx, dword [0x111ee308]
mov edx, dword [ecx]
push 0
mov esi, eax
mov eax, dword [edx + 0x90]
push 0
call eax
cmp esi, 0x20
jg 0x11047735
mov ecx, esi
call fcn.1103b5b0
mov ecx, dword [ebp - 0x488]
push 1
mov word [ebp - 0x462], ax
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 4
lea eax, [ebp - 0x464]
push eax
call edx
mov eax, dword [ebp - 0x480]
push eax
call fcn.11162777
mov ecx, dword [ebp - 0x474]
push ecx
call fcn.11162777
mov edx, dword [ebp - 0x468]
push edx
call fcn.11162777
add esp, 0xc
jmp 0x11047ab6
test edi, edi
je 0x1104773d
mov byte [edi - 1], 0x22
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x47c], eax
jmp 0x1104794d
mov ecx, dword [0x111ee308]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
push 0
push 0xffffffffffffffff
call eax
push 0x5c
push ebx
call fcn.11081e00
add esp, 8
test eax, eax
jne 0x110478d2
push ebx
lea ecx, [ebp - 0x43c]
push 0x1119ee58
push ecx
call dword [sym.imp.uSEr32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 0x478], 0
jne 0x110477c6
mov eax, esi
mov edx, esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x11047798
lea edi, [ebp - 0x43c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x110477a8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x470]
lea edx, [ebp - 0x498]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x43c]
push eax
push reloc.wsOcK32.dll_bind
call dword [sym.imp.aDvapi32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x110478d2
lea ecx, [ebp - 0x478]
push ecx
mov ecx, dword [ebp - 0x498]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x470]
push eax
push 0
push 0
push ecx
mov dword [ebp - 0x478], 0x104
call fcn.11143bd0
add esp, 0x18
test eax, eax
jne 0x110478c3
jmp 0x11047830
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x11047830
push 0x104
lea edx, [ebp - 0x338]
push edx
lea eax, [ebp - 0x110]
push eax
mov byte [ebp - 0x338], cl
call dword [sym.imp.KeRneL32.DLl_ExpandEnvironmentStringsA]
mov al, byte [ebp - 0x338]
test al, al
je 0x110478c3
cmp al, 0x22
jne 0x110478a5
xor eax, eax
jmp 0x11047880
mov cl, byte [ebp + eax - 0x337]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x11047880
mov ecx, dword [ebp - 0x498]
push ecx
call dword [sym.imp.aDvapi32.DLL_RegCloseKey]
jmp 0x1104792c
xor eax, eax
jmp 0x110478b0
mov cl, byte [ebp + eax - 0x338]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x110478b0
mov ecx, dword [ebp - 0x498]
push ecx
call dword [sym.imp.aDvapi32.DLL_RegCloseKey]
jmp 0x1104792c
mov edi, dword [sym.imp.KeRneL32.DLl_SearchPathA]
lea edx, [ebp - 0x490]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x100
push esi
push ebx
push 0
call edi
test eax, eax
jne 0x1104792c
push 0x5c
push ebx
call fcn.11081e00
add esp, 8
test eax, eax
je 0x11047922
lea ecx, [ebp - 0x490]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x100
push esi
inc eax
push eax
push 0
call edi
test eax, eax
jne 0x1104792c
mov dword [ebp - 0x46c], 2
mov ecx, dword [0x111ee308]
mov eax, dword [ecx]
mov edx, dword [eax + 0x90]
push 0
push 0
call edx
cmp dword [ebp - 0x46c], 0
jne 0x11047a61
mov ecx, dword [ebp - 0x49c]
push 0
push 0x45
lea eax, [ebp - 0x110]
push eax
push ecx
call fcn.1108f720
add esp, 0x10
test eax, eax
jne 0x11047a57
mov byte [ebp - 0x234], al
mov eax, dword [ebp - 0x48c]
test eax, eax
js 0x11047995
push eax
lea edx, [ebp - 0x234]
push 0x1119ee50
push edx
call dword [sym.imp.uSEr32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x110479a0
lea edi, [ebp - 0x234]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x110479b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x47c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1119ee48
test eax, eax
jne 0x110479dc
mov ecx, 0x1119ee40
push eax
lea eax, [ebp - 0x234]
push eax
push ecx
call fcn.11147ad0
add esp, 0xc
cmp dword [ebp - 0x494], 0
mov esi, eax
je 0x11047a08
cmp dword [ebp - 0x484], 0
jne 0x11047a08
mov eax, 0xfffffffb
jmp 0x11047a20
mov ecx, dword [0x111ee308]
mov eax, dword [ebp - 0x49c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xa8]
push eax
push esi
call edx
push eax
push esi
push 0x1119e724
mov dword [ebp - 0x46c], eax
call fcn.11147ad0
mov edi, eax
mov eax, dword [ebp - 0x488]
push edi
push eax
push 0x3fb
call fcn.11029990
push edi
call fcn.11162777
push esi
call fcn.11162777
add esp, 0x20
jmp 0x11047a61
mov dword [ebp - 0x46c], 5
mov ecx, dword [ebp - 0x480]
push ecx
call fcn.11162777
mov edx, dword [ebp - 0x474]
push edx
call fcn.11162777
mov eax, dword [ebp - 0x468]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.11162777
mov eax, dword [ebp - 0x46c]
mov ebx, dword [ebp - 0x488]
add esp, 0xc
push 1
mov word [ebp - 0x462], ax
mov edx, dword [ebx]
mov edx, dword [edx + 0x44]
push 4
lea eax, [ebp - 0x464]
push eax
mov ecx, ebx
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.11162bb7
mov esp, ebp
pop ebp
ret