Function at 0x1031c1b0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1036114c
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [esp + 0x280]
xor ecx, ecx
mov ebx, dword [esp + 0x284]
push 0xffffffffffffffff
push ecx
mov word [esp + 0x3c], cx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
call fcn.100cd9d0
mov dword [esp + 0x278], 0
mov edx, 0x103684d4
lea ecx, [esp + 0x34]
call fcn.1014d6d0
mov edx, 0x103684d4
lea ecx, [esp + 0x34]
call fcn.1014d740
cmp dword [esp + 0x44], 0
mov ebp, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jne 0x1031c26c
xor bl, bl
jmp 0x1031c4f2
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 + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1031c2de
cmp word [esp + 0x64], 0
jne 0x1031c2b5
xor ecx, ecx
jmp 0x1031c2cf
lea ecx, [esp + 0x64]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1031c2c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x3c]
call fcn.100cdd90
lea ecx, [esp + 0x34]
call fcn.10151f70
test al, al
je 0x1031c306
lea eax, [esp + 0x34]
cmp ebx, eax
je 0x1031c2ff
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.100cd9d0
mov bl, 1
jmp 0x1031c4f2
push 1
push 0
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x22
push eax
lea ecx, [esp + 0x40]
call fcn.100cdac0
test eax, eax
jne 0x1031c388
push 1
push 1
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x22
push eax
lea ecx, [esp + 0x40]
call fcn.100cdac0
cmp eax, 0xffffffff
je 0x1031c388
dec eax
lea ecx, [esp + 0x34]
push eax
push 1
lea eax, [esp + 0x20]
push eax
call fcn.1010cce0
mov byte [esp + 0x278], 1
mov ecx, ebx
push eax
call fcn.100cd650
mov byte [esp + 0x278], 0
lea ecx, [esp + 0x18]
call fcn.100cd690
mov ecx, ebx
call fcn.10151f70
test al, al
je 0x1031c388
mov bl, 1
jmp 0x1031c4f2
xor edi, edi
xor eax, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], ax
mov byte [esp + 0x278], 2
lea eax, [esp + 0x30]
push 1
push 1
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], 0x20
call fcn.100cdac0
mov esi, eax
cmp esi, 0xffffffff
je 0x1031c4c1
mov dword [esp + 0x30], 0x20
lea ebx, [ebx]
lea ecx, [edi + 1]
mov edi, esi
cmp esi, ecx
je 0x1031c4a2
push esi
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
call fcn.1010cce0
mov ebx, eax
mov byte [esp + 0x278], 3
lea eax, [esp + 0x4c]
cmp eax, ebx
je 0x1031c441
cmp dword [esp + 0x60], 8
jb 0x1031c420
push dword [esp + 0x4c]
call ebp
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
push ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
call fcn.100cd880
mov byte [esp + 0x278], 2
cmp dword [esp + 0x2c], 8
jb 0x1031c459
push dword [esp + 0x18]
call ebp
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
lea ecx, [esp + 0x4c]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.101526a0
test al, al
jne 0x1031c550
push 4
push str..exe
lea ecx, [esp + 0x54]
call fcn.100cdcd0
lea ecx, [esp + 0x4c]
call fcn.101526a0
test al, al
jne 0x1031c550
push 1
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x40]
call fcn.100cdac0
mov esi, eax
cmp esi, 0xffffffff
jne 0x1031c3e0
xor bl, bl
mov byte [esp + 0x278], 0
cmp dword [esp + 0x60], 8
jb 0x1031c4db
push dword [esp + 0x4c]
call ebp
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0x278], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x1031c50d
push dword [esp + 0x34]
call ebp
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov al, bl
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.1033d458
add esp, 0x268
ret 8
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
cmp ecx, eax
je 0x1031c566
push 0xffffffffffffffff
push 0
push eax
call fcn.100cd9d0
mov bl, 1
jmp 0x1031c4c3