Function at 0x100396a0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x20
call fcn.10033d60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
xor edi, edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0x14]
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
jne 0x100396f2
push 0x6d
push str..cryptox509x509_vfy.c
push 0x69
push 0x7f
push 0xb
call fcn.1000c430
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x1003973e
call fcn.1000d000
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x10039760
mov ecx, dword [esi + 8]
push ecx
push eax
call fcn.1000d300
add esp, 8
test eax, eax
je 0x10039760
mov edx, dword [esi + 8]
push 0x7d
push str..cryptox509x509_vfy.c
push 3
add edx, 0x10
push 1
push edx
call fcn.1000af30
add esp, 0x14
mov dword [esi + 0x48], 1
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x10039767
push eax
call fcn.1000cf20
add esp, 4
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x10039767
push 0x85
jmp 0x100398f3
push 0x7a
jmp 0x100398f3
mov eax, dword [esi + 0x4c]
push eax
call fcn.1000d3d0
mov edx, dword [esi + 0x4c]
mov ebx, eax
mov dword [esp + 0x18], ebx
lea ecx, [ebx - 1]
push ecx
push edx
call fcn.1000d3e0
mov edi, eax
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x20], eax
jl 0x10039864
push edi
call fcn.10035560
push edi
push edi
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x10039864
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10039864
mov eax, dword [esp + 0x18]
xor ebx, ebx
push eax
call fcn.1000d3d0
add esp, 4
test eax, eax
jle 0x100397f8
mov ecx, dword [esp + 0x18]
push ebx
push ecx
call fcn.1000d3e0
mov ebp, eax
push ebp
push edi
push esi
call dword [esi + 0x28]
add esp, 0x14
test eax, eax
jne 0x100397fa
mov edx, dword [esp + 0x18]
inc ebx
push edx
call fcn.1000d3d0
add esp, 4
cmp ebx, eax
jl 0x100397cc
xor ebp, ebp
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x10039864
mov eax, dword [esi + 0x4c]
push ebp
push eax
call fcn.1000d300
add esp, 8
test eax, eax
je 0x100398ee
mov ecx, dword [esp + 0x10]
push 0xa6
push str..cryptox509x509_vfy.c
push 3
add ecx, 0x10
push 1
push ecx
call fcn.1000af30
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push edx
push eax
call fcn.1000d1b0
mov edi, dword [esi + 0x48]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
add esp, 0x1c
inc edi
inc eax
mov dword [esi + 0x48], edi
mov edi, dword [esp + 0x10]
cmp ecx, eax
mov dword [esp + 0x14], eax
jge 0x10039797
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.1000d3d0
mov edx, dword [esi + 0x4c]
lea ebx, [eax - 1]
push ebx
push edx
call fcn.1000d3e0
mov edi, eax
push edi
call fcn.10035570
push edi
push edi
push esi
call dword [esi + 0x28]
add esp, 0x1c
test eax, eax
je 0x10039948
mov eax, dword [esi + 0x4c]
push eax
call fcn.1000d3d0
add esp, 4
cmp eax, 1
jne 0x100399ef
push edi
lea ecx, [esp + 0x14]
push esi
push ecx
call dword [esi + 0x24]
mov ebp, eax
add esp, 0xc
test ebp, ebp
jle 0x1003990b
mov edx, dword [esp + 0x10]
push edx
push edi
call fcn.10035590
add esp, 8
test eax, eax
jne 0x1003990b
push edi
call fcn.10036660
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x4c]
push edi
push ebx
push eax
call fcn.1000d400
add esp, 0x10
mov dword [esi + 0x48], 0
jmp 0x10039948
push 0xa3
push str..cryptox509x509_vfy.c
push 0x41
push 0x7f
push 0xb
call fcn.1000c430
add esp, 0x14
jmp 0x10039d32
cmp ebp, 1
mov dword [esi + 0x5c], 0x12
mov dword [esi + 0x60], edi
mov dword [esi + 0x58], ebx
jne 0x1003992a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10036660
add esp, 4
push esi
push 0
mov dword [esp + 0x2c], 1
call dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
je 0x10039d32
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x20], ebx
jl 0x100399a2
push edi
call fcn.10035560
push edi
push edi
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x100399a2
push edi
lea edx, [esp + 0x14]
push esi
push edx
call dword [esi + 0x24]
add esp, 0xc
test eax, eax
jl 0x10039d92
je 0x100399a2
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x4c]
push edi
push eax
call fcn.1000d300
add esp, 8
test eax, eax
je 0x10039d6e
mov eax, dword [esp + 0x20]
inc ebx
cmp eax, ebx
jge 0x10039956
push edi
call fcn.10035560
push edi
push edi
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x10039a5b
test ebp, ebp
je 0x10039a21
push ebp
push edi
push esi
call dword [esi + 0x28]
add esp, 0xc
test eax, eax
je 0x10039a21
mov ecx, dword [esi + 0x4c]
push ebp
push ecx
call fcn.1000d300
add esp, 8
inc ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x60], ebp
mov dword [esi + 0x5c], 0x13
mov dword [esp + 0x1c], 0
jmp 0x10039a39
mov edx, dword [esi + 0x4c]
push edx
call fcn.1000d320
mov ecx, dword [esi + 0x48]
mov ebx, dword [esp + 0x18]
dec ecx
dec ebx
mov ebp, eax
mov dword [esi + 0x48], ecx
mov ecx, dword [esi + 0x4c]
lea eax, [ebx - 1]
push eax
push ecx
mov dword [esp + 0x28], ebp
call fcn.1000d3e0
add esp, 0xc
mov edi, eax
jmp 0x10039950
cmp dword [esi + 0x48], ebx
jl 0x10039a2f
mov dword [esi + 0x5c], 0x14
jmp 0x10039a36
mov dword [esi + 0x5c], 2
mov dword [esi + 0x60], edi
dec ebx
push esi
push 0
mov dword [esi + 0x58], ebx
mov dword [esp + 0x2c], 1
call dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
je 0x10039d32
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x20]
xor ebp, ebp
push str.OPENSSL_ALLOW_PROXY_CERTS
mov eax, dword [edx + 0xc]
mov dword [esp + 0x24], ebp
shr eax, 6
and eax, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0xffffffff
call sub.MSVCR80.dll_getenv
add esp, 4
test eax, eax
je 0x10039a99
mov dword [esp + 0x28], 1
mov eax, dword [esi + 0x48]
test eax, eax
jle 0x10039c5b
mov eax, dword [esi + 0x4c]
push ebp
push eax
call fcn.1000d3e0
mov ecx, dword [esi + 0x14]
mov edi, eax
add esp, 8
test byte [ecx + 0xc], 0x10
jne 0x10039ae1
mov eax, dword [edi + 0x28]
test ah, 2
je 0x10039ae1
push esi
push 0
mov dword [esi + 0x5c], 0x22
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x10039c60
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10039b0e
mov eax, dword [edi + 0x28]
test ah, 4
je 0x10039b0e
push esi
push 0
mov dword [esi + 0x5c], 0x28
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x10039c60
push edi
call fcn.100371f0
mov ecx, dword [esp + 0x38]
add esp, 4
cmp ecx, 0xffffffff
je 0x10039b45
test ecx, ecx
je 0x10039b38
test eax, eax
je 0x10039b57
mov edx, dword [esi + 0x14]
test byte [edx + 0xc], 0x20
je 0x10039b74
cmp eax, 1
je 0x10039b74
jmp 0x10039b57
test eax, eax
je 0x10039b74
mov dword [esi + 0x5c], 0x25
jmp 0x10039b5e
mov ecx, dword [esi + 0x14]
test byte [ecx + 0xc], 0x20
je 0x10039b74
cmp eax, 1
je 0x10039b74
test eax, eax
je 0x10039b74
mov dword [esi + 0x5c], 0x18
push esi
push 0
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x10039c60
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0x10]
test eax, eax
jle 0x10039bc3
mov edx, dword [esp + 0x34]
xor ecx, ecx
test edx, edx
setg cl
push ecx
push eax
push edi
call fcn.10036d10
add esp, 0xc
test eax, eax
je 0x10039ba6
mov edx, dword [esi + 0x14]
test byte [edx + 0xc], 0x20
je 0x10039bc3
cmp eax, 1
je 0x10039bc3
push esi
push 0
mov dword [esi + 0x5c], 0x1a
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x10039c60
cmp ebp, 1
jle 0x10039bff
test byte [edi + 0x28], 0x20
jne 0x10039bff
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x10039bff
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx + 1]
mov eax, dword [esp + 0x20]
cmp eax, edx
jle 0x10039bff
push esi
push 0
mov dword [esi + 0x5c], 0x19
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x10039c60
mov eax, dword [edi + 0x28]
test al, 0x20
jne 0x10039c0a
inc dword [esp + 0x20]
test ah, 4
je 0x10039c47
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x10039c34
cmp ebp, eax
jle 0x10039c34
push esi
push 0
mov dword [esi + 0x5c], 0x26
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x10039c60
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 0
inc eax
mov dword [esp + 0x14], eax
jmp 0x10039c4f
mov dword [esp + 0x34], 1
mov eax, dword [esi + 0x48]
inc ebp
cmp ebp, eax
jl 0x10039aa4
mov eax, 1
test eax, eax
mov dword [esp + 0x34], eax
je 0x10039d32
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x10039cd0
mov ecx, dword [esi + 0x4c]
mov ebp, dword [esi + 0x20]
push ecx
call fcn.1000d3d0
mov edx, dword [esi + 0x4c]
mov edi, eax
dec edi
push edi
push edx
call fcn.1000d3e0
mov ebx, eax
mov eax, dword [esi + 0x14]
push 0
mov ecx, dword [eax + 0x14]
push ecx
push ebx
call fcn.1003dad0
add esp, 0x18
cmp eax, 1
je 0x10039cd8
cmp eax, 2
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], ebx
jne 0x10039cbd
mov dword [esi + 0x5c], 0x1c
jmp 0x10039cc4
mov dword [esi + 0x5c], 0x1b
push esi
push 0
call ebp
add esp, 8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10039d32
mov edx, dword [esi + 0x4c]
push edx
push 0
call fcn.1003a1f0
push esi
call dword [esi + 0x2c]
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
je 0x10039d32
mov eax, dword [esi + 0x1c]
push esi
test eax, eax
je 0x10039cfe
call eax
jmp 0x10039d03
call fcn.10039da0
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x10039d32
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10039d2a
mov eax, dword [esi + 0x14]
test byte [eax + 0xc], 0x80
je 0x10039d2a
push esi
call dword [esi + 0x3c]
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10039d40
mov ecx, dword [esi + 0x4c]
push ecx
push 0
call fcn.1003a1f0
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10039d51
push eax
call fcn.1000d3a0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10039d62
push eax
call fcn.10036660
add esp, 4
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.10036660
push 0xfa
push str..cryptox509x509_vfy.c
push 0x41
push 0x7f
push 0xb
call fcn.1000c430
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret