Function at 0x108229a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
inc esi
cmp dword [0x10b8c90], ebx
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
jne 0x1082318
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x101a494
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x12
ja 0x108230b
lea eax, [ebp - 0x2c]
push eax
mov dword [0x10b8c8c], esi
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [0x10b8c88], eax
mov dword [0x10b8c84], eax
jmp 0x1082310
mov eax, dword [0x10b8c88]
mov dword [0x10b8c90], esi
jmp 0x108231d
mov eax, dword [0x10b8c88]
cmp eax, ebx
mov ecx, dword [ebp + 0xc]
jne 0x108232b
test ecx, ecx
mov byte [ebp - 0x32], bl
jns 0x108232f
mov byte [ebp - 0x32], 1
cmp dword [0x10b8c8c], ebx
jne 0x1082347
cmp dword [ebp + 8], ebx
jne 0x1082347
test ecx, 0x40000000
mov byte [ebp - 0x2d], bl
je 0x108234b
mov byte [ebp - 0x2d], 1
shr ecx, 0x1d
not cl
and cl, 1
cmp byte [ebp - 0x32], bl
mov byte [ebp - 0x31], cl
jne 0x1082364
cmp byte [ebp - 0x2d], bl
je 0x108276f
cmp eax, ebx
je 0x108237c
inc dword [0x10b8c84]
cmp dword [0x10b8c84], eax
jb 0x108237c
mov dword [0x10b8c84], ebx
cmp byte [ebp - 0x2d], bl
je 0x10823e3
test cl, cl
je 0x1082394
push 0x101a46c
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
pop ecx
jmp 0x108239e
push 0x101a420
call fcn.0108880b
pop ecx
push 0x10b6130
push 0x101a3e8
push dword [edi + 8]
push dword [ebp - 0x31]
call fcn.01080529
push 0x10b6018
push 0x101a3b0
push dword [edi + 4]
push dword [ebp - 0x31]
call fcn.01080529
cmp dword [edi], 0x24
jb 0x10823e3
cmp dword [edi + 0x1c], ebx
je 0x10823e3
push dword [edi + 0x20]
push 0x101a360
push dword [ebp - 0x31]
call fcn.01080c1b
cmp dword [edi + 0xc], ebx
mov dword [ebp - 0x3c], ebx
jbe 0x10826ae
cmp byte [ebp - 0x32], 0
mov esi, dword [ebp - 0x3c]
je 0x108240a
mov eax, dword [edi + 0x10]
push esi
push dword [0x10b8c84]
push dword [eax + esi*4]
call fcn.01081dfc
cmp byte [ebp - 0x2d], 0
je 0x108246a
mov eax, dword [edi + 0x10]
mov eax, dword [eax + esi*4]
push 0x10b6130
push 0x101a328
push dword [eax + 8]
push dword [ebp - 0x31]
call fcn.01080529
mov eax, dword [edi + 0x10]
mov eax, dword [eax + esi*4]
push 0x10b6018
push 0x101a2f4
push dword [eax + 4]
push dword [ebp - 0x31]
call fcn.01080529
mov eax, dword [edi + 0x10]
mov eax, dword [eax + esi*4]
xor ebx, ebx
cmp dword [eax], 0x20
jb 0x108246c
cmp dword [eax + 0x18], ebx
je 0x108246c
push dword [eax + 0x1c]
push 0x101a2a8
push dword [ebp - 0x31]
call fcn.01080c1b
jmp 0x108246c
xor ebx, ebx
cmp dword [ebp - 0x38], ebx
je 0x108247d
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x44], ebx
je 0x108248f
push ebx
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.010806da
cmp eax, ebx
je 0x10824ab
push eax
push 0xe5101a3
call fcn.0107ae44
mov eax, dword [edi + 0x10]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0xc], ebx
mov dword [ebp - 0x40], ebx
jbe 0x108269f
cmp byte [ebp - 0x2d], 0
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x40]
mov esi, dword [eax + ecx*4]
jne 0x10824dc
cmp dword [ebp + 8], 0
jne 0x10824dc
cmp dword [esi + 8], 0
je 0x1082687
cmp byte [ebp - 0x31], 0
push dword [esi + 8]
push dword [esi + 0xc]
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
je 0x10824ff
push 0x101a270
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
add esp, 0x18
jmp 0x108250c
push 0x101a200
call fcn.0108880b
add esp, 0x14
push 1
push dword [ebp - 0x31]
push dword [esi + 4]
call fcn.01082078
test eax, eax
je 0x1082528
push eax
push 0xe6801a3
call fcn.0107ae44
push 0x10b6130
push 0x101a1cc
push dword [esi + 0xc]
push dword [ebp - 0x31]
call fcn.01080529
push 0x10b6018
push 0x101a19c
push dword [esi + 8]
push dword [ebp - 0x31]
call fcn.01080529
cmp dword [ebp - 0x4c], 0
je 0x108256a
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x3c]
push dword [eax + ecx*4]
push dword [ebp - 0x40]
push dword [ebp + 0xc]
call dword [ebp - 0x4c]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10825be
cmp dword [ebx], 0x1c
jb 0x10825be
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10825be
push dword [ebp - 0x38]
push dword [eax + 4]
push 0
push dword [ebp - 0x31]
call fcn.0108217a
test eax, eax
je 0x108259c
push eax
push 0xe8501a3
call fcn.0107ae44
push dword [ebp - 0x38]
mov eax, dword [ebx + 0x18]
push dword [eax + 8]
push 1
push dword [ebp - 0x31]
call fcn.0108217a
test eax, eax
je 0x10825be
push eax
push 0xe8c01a3
call fcn.0107ae44
cmp dword [esi], 0x18
jb 0x10825d3
push dword [esi + 0x14]
push 0x101a184
push dword [ebp - 0x31]
call fcn.0108057d
cmp dword [esi], 0x1c
jb 0x10825e8
push dword [esi + 0x18]
push 0x101a168
push dword [ebp - 0x31]
call fcn.0108057d
cmp dword [esi], 0x20
jb 0x1082618
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1082618
cmp byte [ebp - 0x31], 0
push eax
je 0x108260c
push 0x101a160
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
add esp, 0xc
jmp 0x1082618
push 0x1009628
call fcn.0108880b
pop ecx
pop ecx
mov ebx, dword [ebp - 0x40]
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4]
inc ebx
cmp ebx, dword [eax + 0xc]
jne 0x108263a
push 0x101a14c
push dword [ebp - 0x38]
push dword [ebp - 0x31]
call fcn.01080916
mov esi, dword [esi + 4]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp - 0x38]
call fcn.010808d7
test eax, eax
je 0x108265a
push eax
push 0xeab01a3
call fcn.0107ae44
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4]
cmp ebx, dword [eax + 0xc]
jne 0x1082687
push 0x101a140
push dword [ebp - 0x38]
push dword [ebp - 0x31]
call fcn.01080916
test eax, eax
je 0x1082687
push eax
push 0xeb001a3
call fcn.0107ae44
mov ecx, dword [ebp - 0x3c]
inc dword [ebp - 0x40]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax + 0xc]
jb 0x10824bd
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [edi + 0xc]
jb 0x10823ef
xor edi, edi
cmp byte [ebp - 0x2d], 0
je 0x1082752
cmp dword [ebp + 8], edi
je 0x1082732
push 1
push dword [ebp + 8]
call sub.certcli.dll_Ordinal_207
cmp dword [ebp - 0x48], edi
mov esi, eax
je 0x10826f6
cmp byte [ebp - 0x31], 0
push dword [ebp - 0x48]
je 0x10826ea
push 0x101a128
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
add esp, 0xc
jmp 0x10826f6
push 0x101a0fc
call fcn.0108880b
pop ecx
pop ecx
push 1
push dword [ebp - 0x31]
push dword [ebp - 0x50]
call fcn.01082078
cmp esi, edi
je 0x1082732
cmp byte [ebp - 0x31], 0
push esi
je 0x108271f
push 0x101a0f4
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
add esp, 0xc
jmp 0x108272b
push 0x1001ba4
call fcn.0108880b
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x31], 0
je 0x1082747
push 0x101a0cc
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
pop ecx
jmp 0x1082751
push 0x101a080
call fcn.0108880b
pop ecx
cmp dword [ebp - 0x38], edi
je 0x1082760
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x44], edi
je 0x108276f
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0x18