Function at 0x1058783
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1079e94]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
cmp dword [0x107c6b4], esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], esi
jne 0x1058805
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x10103dc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jbe 0x10587f5
cmp eax, 0x14
jae 0x10587f5
xor ebx, ebx
lea eax, [ebp - 0x2c]
inc ebx
push eax
mov dword [0x107c6b0], ebx
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [0x107c6ac], eax
mov dword [0x107c6a8], eax
jmp 0x10587fd
mov eax, dword [0x107c6ac]
xor ebx, ebx
inc ebx
mov dword [0x107c6b4], ebx
jmp 0x105880d
mov eax, dword [0x107c6ac]
xor ebx, ebx
inc ebx
cmp eax, esi
jne 0x105881a
test byte [ebp + 0xf], 0x80
mov dword [ebp - 0x44], esi
je 0x105881d
mov dword [ebp - 0x44], ebx
cmp dword [0x107c6b0], esi
jne 0x1058833
cmp dword [ebp + 8], esi
jne 0x1058833
test byte [ebp + 0xf], 0x40
mov dword [ebp - 0x38], esi
je 0x1058836
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x44], esi
jne 0x1058844
cmp dword [ebp - 0x38], esi
je 0x1058b98
cmp eax, esi
je 0x105885c
inc dword [0x107c6a8]
cmp dword [0x107c6a8], eax
jb 0x105885c
mov dword [0x107c6a8], esi
cmp dword [ebp - 0x38], esi
je 0x10588aa
push 0x10103b4
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
pop ecx
pop ecx
push 0x107a150
push 0x1010380
push dword [edi + 8]
call fcn.01057334
push 0x107a038
push 0x1010348
push dword [edi + 4]
call fcn.01057334
cmp dword [edi], 0x24
jb 0x10588aa
cmp dword [edi + 0x1c], esi
je 0x10588aa
push dword [edi + 0x20]
push 0x10102f8
call fcn.01057a0e
xor ebx, ebx
cmp dword [edi + 0xc], esi
mov dword [ebp - 0x40], ebx
jbe 0x1058b1d
cmp dword [ebp - 0x44], esi
je 0x10588cf
mov eax, dword [edi + 0x10]
push ebx
push dword [0x107c6a8]
push dword [eax + ebx*4]
call fcn.010574b3
cmp dword [ebp - 0x38], esi
je 0x1058921
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ebx*4]
push 0x107a150
push 0x10102c0
push dword [eax + 8]
call fcn.01057334
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ebx*4]
push 0x107a038
push 0x101028c
push dword [eax + 4]
call fcn.01057334
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ebx*4]
cmp dword [eax], 0x20
jb 0x1058921
cmp dword [eax + 0x18], esi
je 0x1058921
push dword [eax + 0x1c]
push 0x1010240
call fcn.01057a0e
cmp dword [ebp - 0x30], esi
je 0x1058932
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x3c], esi
je 0x1058944
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.010576a2
cmp eax, esi
je 0x1058960
push eax
push 0xb8801a3
call fcn.01053610
mov eax, dword [edi + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [eax]
cmp dword [ecx + 0xc], esi
mov dword [ebp - 0x34], esi
jbe 0x1058b10
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x34]
mov esi, dword [eax + ecx*4]
xor eax, eax
cmp dword [ebp - 0x38], eax
jne 0x1058994
cmp dword [ebp + 8], eax
jne 0x1058994
cmp dword [esi + 8], eax
je 0x1058af7
push dword [esi + 8]
push dword [esi + 0xc]
push dword [ebp - 0x34]
push ebx
push 0x1010204
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
add esp, 0x18
push dword [esi + 4]
call fcn.01058600
test eax, eax
je 0x10589c4
push eax
push 0xb9f01a3
call fcn.01053610
push 0x107a150
push 0x10101d4
push dword [esi + 0xc]
call fcn.01057334
push 0x107a038
push 0x10101a4
push dword [esi + 8]
call fcn.01057334
cmp dword [ebp - 0x4c], 0
je 0x10589fd
mov eax, dword [edi + 0x10]
push dword [eax + ebx*4]
push dword [ebp - 0x34]
push dword [ebp + 0xc]
call dword [ebp - 0x4c]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1058a4b
cmp dword [ebx], 0x1c
jb 0x1058a4b
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1058a4b
push dword [ebp - 0x30]
push dword [eax + 4]
push 0
call fcn.010586ab
test eax, eax
je 0x1058a2c
push eax
push 0xbb901a3
call fcn.01053610
push dword [ebp - 0x30]
mov eax, dword [ebx + 0x18]
push dword [eax + 8]
push 1
call fcn.010586ab
test eax, eax
je 0x1058a4b
push eax
push 0xbbf01a3
call fcn.01053610
cmp dword [esi], 0x18
jb 0x1058a5d
push dword [esi + 0x14]
push 0x101018c
call fcn.01057373
cmp dword [esi], 0x1c
jb 0x1058a6f
push dword [esi + 0x18]
push 0x1010170
call fcn.01057373
cmp dword [esi], 0x20
jb 0x1058a8b
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1058a8b
push eax
push 0x1010168
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
add esp, 0xc
mov ebx, dword [ebp - 0x34]
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + ecx*4]
inc ebx
cmp ebx, dword [eax + 0xc]
jne 0x1058aaa
push 0x1010154
push dword [ebp - 0x30]
call fcn.0105784e
mov esi, dword [esi + 4]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp - 0x30]
call fcn.0105780f
test eax, eax
je 0x1058aca
push eax
push 0xbde01a3
call fcn.01053610
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + ecx*4]
cmp ebx, dword [eax + 0xc]
jne 0x1058af4
push 0x1010148
push dword [ebp - 0x30]
call fcn.0105784e
test eax, eax
je 0x1058af4
push eax
push 0xbe301a3
call fcn.01053610
mov ebx, dword [ebp - 0x40]
mov eax, dword [edi + 0x10]
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
lea eax, [eax + ebx*4]
mov ecx, dword [eax]
cmp edx, dword [ecx + 0xc]
jb 0x1058974
xor esi, esi
inc ebx
cmp ebx, dword [edi + 0xc]
mov dword [ebp - 0x40], ebx
jb 0x10588b8
cmp dword [ebp - 0x38], esi
je 0x1058b7b
cmp dword [ebp + 8], esi
je 0x1058b6d
push 1
push dword [ebp + 8]
call sub.certcli.dll_Ordinal_207
cmp dword [ebp - 0x48], esi
mov edi, eax
je 0x1058b4a
push dword [ebp - 0x48]
push 0x1010130
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
add esp, 0xc
push dword [ebp - 0x50]
call fcn.01058600
cmp edi, esi
je 0x1058b6d
push edi
push 0x1010128
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x1010100
push 0xffffffffffffffff
call sub.certcli.dll_Ordinal_203
pop ecx
pop ecx
cmp dword [ebp - 0x30], esi
je 0x1058b89
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x3c], esi
je 0x1058b98
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0104b509
leave
ret 0x18