Function at 0x10339cd0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x10365017
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov dword [esp + 0x14], edx
cmp dword [ecx + 0x10], 0
mov eax, dword [esp + 0x284]
mov dword [esp + 0x18], eax
jne 0x10339d26
xor al, al
jmp 0x1033a0a1
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x27c], eax
cmp dword [ecx + 0x14], 8
jb 0x10339d5e
mov eax, dword [ecx]
jmp 0x10339d60
mov eax, ecx
cmp word [eax], 0x40
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jne 0x10339df7
mov eax, dword [ecx + 0x10]
mov edx, ecx
dec eax
lea ecx, [esp + 0x34]
push eax
call fcn.1014d8e0
add esp, 4
mov edi, eax
mov byte [esp + 0x27c], 1
lea eax, [esp + 0x1c]
cmp eax, edi
je 0x10339dc6
cmp dword [esp + 0x30], 8
jb 0x10339da5
push dword [esp + 0x1c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.100cd880
mov byte [esp + 0x27c], 0
cmp dword [esp + 0x48], 8
jb 0x10339dde
push dword [esp + 0x34]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
jmp 0x10339e0b
lea eax, [esp + 0x1c]
cmp eax, ecx
je 0x10339e0b
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.100cd9d0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esp + 0x64]
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp ebx, 0x104
jb 0x10339eb6
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1033d1c5
add esp, 4
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x30], 8
mov edi, eax
cmovae ecx, dword [esp + 0x1c]
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [edi], 0
jne 0x10339e8a
xor ecx, ecx
jmp 0x10339e9f
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10339e90
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.100cdd90
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x10339eee
cmp word [esp + 0x64], 0
jne 0x10339ec2
xor ecx, ecx
jmp 0x10339edf
lea ecx, [esp + 0x64]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10339ed0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x24]
call fcn.100cdd90
push 2
xor eax, eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [esp + 0x50]
push 0x1058866c
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
call fcn.100cdd90
mov byte [esp + 0x27c], 2
lea eax, [esp + 0x4c]
push dword [esp + 0x5c]
cmp dword [esp + 0x64], 8
lea ecx, [esp + 0x20]
push 0
cmovae eax, dword [esp + 0x54]
push eax
call fcn.100cdac0
mov edi, eax
cmp edi, 0xffffffff
je 0x1033a01d
push edi
lea edx, [esp + 0x20]
lea ecx, [esp + 0x38]
call fcn.1014d860
add esp, 4
mov byte [esp + 0x27c], 3
mov ecx, dword [esp + 0x14]
push eax
call fcn.100cd650
mov byte [esp + 0x27c], 2
cmp dword [esp + 0x48], 8
jb 0x10339f91
push dword [esp + 0x34]
call esi
add esp, 4
mov ebx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
test ebx, ebx
je 0x1033a019
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
sub eax, dword [esp + 0x5c]
lea ecx, [esp + 0x34]
sub eax, edi
push eax
call fcn.1014d8e0
add esp, 4
mov byte [esp + 0x27c], 4
lea ecx, [esp + 0x34]
cmp dword [esp + 0x48], 8
cmovae ecx, dword [esp + 0x34]
xor edx, edx
call fcn.1014d190
mov dword [ebx], eax
mov byte [esp + 0x27c], 2
cmp dword [esp + 0x48], 8
jb 0x1033a002
push dword [esp + 0x34]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov bl, 1
jmp 0x1033a03e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x1033a035
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.100cd9d0
mov ebx, dword [esp + 0x18]
test ebx, ebx
sete bl
mov byte [esp + 0x27c], 0
cmp dword [esp + 0x60], 8
jb 0x1033a056
push dword [esp + 0x4c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0x27c], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x1033a088
push dword [esp + 0x1c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
mov al, bl
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.1033d458
add esp, 0x270
ret