Function at 0x104a9f9
Capabilities:
Query environment variable

Disassembly:
push 0x32c
mov eax, 0x10cf625
call fcn.010b53c2
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xe8], ebx
mov esi, 0x10109fc
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x104], eax
movsw word es:[edi], word [esi]
call fcn.01033230
push dword [ebp - 0xec]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], ebx
call fcn.0103376e
lea ecx, [ebp - 0x3c]
call fcn.01033230
lea ecx, [ebp - 0x90]
call fcn.01033230
mov esi, dword [ebp - 0x104]
mov eax, dword [esi]
add eax, 0x54
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 3
call fcn.0103376e
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 5
call edi
mov dword [ebp - 0xec], eax
cmp eax, ebx
je 0x104abb0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010b35ad
pop ecx
push dword [ebp - 0xec]
mov esi, eax
push esi
lea eax, [ebp - 0x20]
push eax
call edi
mov ecx, dword [ebp - 0xec]
dec ecx
cmp ecx, eax
je 0x104ab78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 7
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.01033bfc
push esi
lea eax, [ebp - 0x168]
push eax
mov byte [ebp - 4], 6
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x74]
push 0x10104d8
push eax
mov byte [ebp - 4], 7
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 8
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 6
call fcn.01032f16
push 0x1010958
lea ecx, [ebp - 0x100]
call fcn.01033c5d
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x140]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x140]
push eax
call fcn.010b4e4c
push esi
lea ecx, [ebp - 0x74]
call fcn.01033a48
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 9
call fcn.0103365f
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x74]
call fcn.01032f16
push esi
call fcn.010b359d
mov esi, dword [ebp - 0x104]
pop ecx
jmp 0x104abb3
xor edi, edi
inc edi
mov dword [ebp - 0xec], ebx
cmp dword [ebp - 0x98], ebx
jne 0x104abd1
push 3
pop eax
cmp ax, word [ebp - 0xec]
ja 0x104af98
mov eax, dword [esi]
cmp dword [eax + 0x118], ebx
jne 0x104abfa
mov ecx, edi
cmp cx, word [ebp - 0xec]
je 0x104af98
push 2
pop ecx
cmp cx, word [ebp - 0xec]
je 0x104af98
cmp dword [ebp - 0xb4], ebx
jne 0x104ac12
push 3
pop ecx
cmp cx, word [ebp - 0xec]
je 0x104afae
cmp dword [eax + 0x118], ebx
jne 0x104ac2a
push 4
pop eax
cmp ax, word [ebp - 0xec]
je 0x104afae
lea ecx, [ebp - 0x74]
call fcn.01033230
movzx eax, word [ebp - 0xec]
sub eax, ebx
mov byte [ebp - 4], 0xa
je 0x104aefa
dec eax
je 0x104adae
dec eax
je 0x104ada3
dec eax
je 0x104ad80
dec eax
je 0x104ac8a
dec eax
jne 0x104b007
lea eax, [ebp - 0xc8]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0103365f
mov eax, dword [esi]
push 0xffffffffffffffff
lea ecx, [ebp - 0xe4]
push ebx
push ecx
lea ecx, [eax + 0x54]
jmp 0x104af07
mov eax, dword [esi]
push 0xffffffffffffffff
push ebx
add eax, 0x104
push eax
lea ecx, [ebp - 0x90]
call fcn.0103365f
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
add eax, 0x104
push eax
call fcn.0103a4ea
cmp dword [ebp - 0x28], ebx
je 0x104b013
mov edi, dword [esi]
push dword [edi + 0x118]
lea ecx, [edi + 0x104]
push 0x1002650
call fcn.01035b55
cmp eax, 0xffffffff
jne 0x104acdc
lea eax, [edi + 0x54]
jmp 0x104ad1e
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
lea ecx, [edi + 0x104]
call fcn.010372dc
or dword [ebp - 0xe8], 4
push 0x1002650
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 0x16
call fcn.010377ae
add esp, 0xc
or dword [ebp - 0xe8], 8
mov dword [ebp - 4], 0x17
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x74]
call fcn.0103365f
test byte [ebp - 0xe8], 8
je 0x104ad48
and dword [ebp - 0xe8], 0xfffffff7
push ebx
push 1
lea ecx, [ebp - 0x26c]
call fcn.01032f16
test byte [ebp - 0xe8], 4
mov dword [ebp - 4], 0xa
je 0x104ad6d
and dword [ebp - 0xe8], 0xfffffffb
push ebx
push 1
lea ecx, [ebp - 0x210]
call fcn.01032f16
lea eax, [ebp - 0x10c]
push eax
mov ecx, esi
call fcn.01058439
jmp 0x104aee4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0103365f
push esi
lea ecx, [ebp - 0x10c]
call fcn.01058439
jmp 0x104af0c
lea eax, [ebp - 0xac]
jmp 0x104ac6a
mov eax, dword [esi]
push 0xffffffffffffffff
push ebx
add eax, 0x104
push eax
lea ecx, [ebp - 0x90]
call fcn.0103365f
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
add eax, 0x104
push eax
call fcn.0103a4ea
cmp dword [ebp - 0x28], ebx
je 0x104b08f
mov edi, dword [esi]
push dword [edi + 0x118]
lea ecx, [edi + 0x104]
push 0x1002650
call fcn.01035b55
cmp eax, 0xffffffff
jne 0x104ae00
lea eax, [edi + 0x54]
jmp 0x104ae42
push eax
push ebx
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [edi + 0x104]
call fcn.010372dc
or dword [ebp - 0xe8], 1
push 0x1002650
push eax
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 0x10
call fcn.010377ae
add esp, 0xc
or dword [ebp - 0xe8], 2
mov dword [ebp - 4], 0x11
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x74]
call fcn.0103365f
test byte [ebp - 0xe8], 2
je 0x104ae6c
and dword [ebp - 0xe8], 0xfffffffd
push ebx
push 1
lea ecx, [ebp - 0x22c]
call fcn.01032f16
test byte [ebp - 0xe8], 1
mov dword [ebp - 4], 0xa
je 0x104ae91
and dword [ebp - 0xe8], 0xfffffffe
push ebx
push 1
lea ecx, [ebp - 0x1a0]
call fcn.01032f16
push 0x33c
call fcn.010b2945
pop ecx
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 0x12
cmp eax, ebx
je 0x104aeb3
mov ecx, eax
call fcn.01049694
jmp 0x104aeb5
xor eax, eax
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xa
call fcn.0104a5a7
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.01058439
mov ecx, dword [ebp - 0x148]
mov byte [ebp - 4], 0xa
cmp ecx, ebx
je 0x104aee4
call fcn.0103d6e8
mov eax, dword [esi]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [eax + 0x54]
call fcn.0103365f
xor edi, edi
inc edi
jmp 0x104af0c
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0103365f
push dword [esi]
lea ecx, [ebp - 0x338]
call fcn.01040b79
lea ecx, [ebp - 0x250]
call fcn.01079da2
lea eax, [ebp - 0x338]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x18
call fcn.01035e2b
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0104b760
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.01049c3c
push eax
lea ecx, [ebp - 0x138]
call fcn.010408a7
cmp byte [ebp - 0x133], bl
je 0x104b17a
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xa
call fcn.0104d4af
push ebx
push edi
lea ecx, [ebp - 0x74]
call fcn.01032f16
inc dword [ebp - 0xec]
push 6
pop eax
cmp ax, word [ebp - 0xec]
ja 0x104abb9
mov ecx, dword [ebp - 0x108]
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x104afc1
call fcn.0103d6e8
push ebx
push edi
lea ecx, [ebp - 0xe4]
call fcn.01032f16
push ebx
push edi
lea ecx, [ebp - 0x90]
call fcn.01032f16
push ebx
push edi
lea ecx, [ebp - 0x3c]
call fcn.01032f16
push ebx
push edi
lea ecx, [ebp - 0xc8]
call fcn.01032f16
push ebx
push edi
lea ecx, [ebp - 0xac]
call fcn.01032f16
call fcn.010b5454
ret 8
push ebx
push edi
lea ecx, [ebp - 0x74]
call fcn.01032f16
jmp 0x104afae
push ebx
push 0x11
lea ecx, [ebp - 0x100]
call fcn.01033bfc
mov esi, dword [esi]
add esi, 0x104
push esi
lea eax, [ebp - 0x1f4]
push 0x1010910
push eax
mov byte [ebp - 4], 0x14
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x15
call fcn.01033bb7
push ebx
push edi
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 0x14
call fcn.01032f16
push 0x1010898
lea ecx, [ebp - 0x100]
call fcn.01033c5d
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x50]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x50]
jmp 0x104ab72
push ebx
push 0x11
lea ecx, [ebp - 0x100]
call fcn.01033bfc
mov esi, dword [esi]
add esi, 0x104
push esi
lea eax, [ebp - 0x1bc]
push 0x1010910
push eax
mov byte [ebp - 4], 0xb
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.01033bb7
push ebx
push edi
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0xb
call fcn.01032f16
push 0x1010840
lea ecx, [ebp - 0x12c]
call fcn.01033a48
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x184]
push eax
mov byte [ebp - 4], 0xd
call fcn.010377ae
push 0x1010810
push eax
lea eax, [ebp - 0x1d8]
push eax
mov byte [ebp - 4], 0xe
call fcn.010377ae
add esp, 0x18
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xf
call fcn.01033bb7
push ebx
push edi
lea ecx, [ebp - 0x1d8]
call fcn.01032f16
push ebx
push edi
lea ecx, [ebp - 0x184]
call fcn.01032f16
push ebx
push edi
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0xb
call fcn.01032f16
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x160]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x160]
jmp 0x104ab72
push ebx
push 0x10
lea ecx, [ebp - 0x100]
call fcn.01033bfc
movzx eax, word [ebp - 0xec]
sub eax, ebx
mov byte [ebp - 4], 0x19
je 0x104b2b9
dec eax
je 0x104b20d
dec eax
je 0x104b2b9
dec eax
je 0x104b1b2
dec eax
je 0x104b1c7
dec eax
jne 0x104b332
push 0x1010798
lea ecx, [ebp - 0x100]
call fcn.01033c5d
jmp 0x104b332
push 0x1010718
lea ecx, [ebp - 0x100]
call fcn.01033c5d
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x12c]
push 0x10106d8
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x21
call fcn.01033bb7
lea ecx, [ebp - 0x12c]
jmp 0x104b327
push 0x1010670
lea ecx, [ebp - 0x1bc]
call fcn.01033a48
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x1d8]
push eax
mov byte [ebp - 4], 0x1d
call fcn.010377ae
push 0x1010810
push eax
lea eax, [ebp - 0x184]
push eax
mov byte [ebp - 4], 0x1e
call fcn.010377ae
add esp, 0x18
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x1f
call fcn.01033bb7
push ebx
push edi
lea ecx, [ebp - 0x184]
call fcn.01032f16
push ebx
push edi
lea ecx, [ebp - 0x1d8]
call fcn.01032f16
push ebx
push edi
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0x19
call fcn.01032f16
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x1f4]
push 0x10106d8
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x20
call fcn.01033bb7
lea ecx, [ebp - 0x1f4]
jmp 0x104b327
push 0x1010610
lea ecx, [ebp - 0x210]
call fcn.01033a48
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 0x1a
call fcn.010377ae
push 0x1010810
push eax
lea eax, [ebp - 0x1a0]
push eax
mov byte [ebp - 4], 0x1b
call fcn.010377ae
add esp, 0x18
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x1c
call fcn.01033bb7
push ebx
push edi
lea ecx, [ebp - 0x1a0]
call fcn.01032f16
push ebx
push edi
lea ecx, [ebp - 0x22c]
call fcn.01032f16
lea ecx, [ebp - 0x210]
push ebx
push edi
mov byte [ebp - 4], 0x19
call fcn.01032f16
mov esi, 0x1004638
push esi
lea ecx, [ebp - 0x100]
call fcn.01033c5d
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x3c]
call fcn.01035e2b
push dword [eax]
lea ecx, [ebp - 0x58]
push dword [ebp - 0x138]
call fcn.01043881
push ebx
push 0x10015b4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x22
call fcn.01035b25
push eax
push ebx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x58]
call fcn.010372dc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x23
call fcn.0103365f
push ebx
push edi
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x22
call fcn.01032f16
cmp dword [ebp - 0x44], 0x32
jbe 0x104b3ee
push 0x32
push ebx
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x58]
call fcn.010372dc
or dword [ebp - 0xe8], 0x10
push 0x1010604
push eax
lea eax, [ebp - 0x12c]
push eax
mov byte [ebp - 4], 0x24
call fcn.010377ae
add esp, 0xc
or dword [ebp - 0xe8], 0x20
mov dword [ebp - 4], 0x25
jmp 0x104b3f1
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.0103365f
test byte [ebp - 0xe8], 0x20
je 0x104b41a
and dword [ebp - 0xe8], 0xffffffdf
push ebx
push edi
lea ecx, [ebp - 0x12c]
call fcn.01032f16
test byte [ebp - 0xe8], 0x10
mov dword [ebp - 4], 0x22
je 0x104b437
push ebx
push edi
lea ecx, [ebp - 0x184]
call fcn.01032f16
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xfc]
call fcn.01033bb7
mov eax, 0x10105c0
cmp di, word [ebp - 0xec]
jne 0x104b459
mov eax, 0x1010570
push eax
lea ecx, [ebp - 0x100]
call fcn.01033c5d
push esi
lea ecx, [ebp - 0x100]
call fcn.01033c5d
push 0x1010518
lea ecx, [ebp - 0x100]
call fcn.01033c5d
jmp 0x104b158