Function at 0x10048b80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10078bc6
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x10048c85
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e129
mov edi, eax
add esp, 4
lea eax, [esi + esi]
push eax
push 0
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], eax
call sub.MSVCR110.dll_memset
mov esi, dword [esp + 0x24]
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10048c18
mov eax, dword [esi]
jmp 0x10048c1a
mov eax, esi
mov ecx, dword [esp + 0x10]
push ecx
push eax
push ecx
push edi
call dword [sym.imp.MSVCR110.dll_memcpy_s]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push edi
lea ecx, [esp + 0x24]
call fcn.10008e70
lea ecx, [esp + 0x20]
mov dword [esp + 0xa8], 0
call fcn.100498a0
mov dword [esp + 0xa8], 0xffffffff
cmp dword [esp + 0x34], 8
mov dword [esp + 0x18], eax
jb 0x10048c77
push dword [esp + 0x20]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x10048c8c
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor al, al
jmp 0x10048f7c
cmp eax, 1
jne 0x10048cb2
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp ebx, esi
je 0x10048cab
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.10001f80
mov al, 1
jmp 0x10048f7c
push 8
push str.file:___
push edi
call dword [sym.imp.MSVCR110.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10048d26
push edi
lea ecx, [esp + 0x54]
call fcn.10008e70
push 8
push 0
lea ecx, [esp + 0x58]
mov dword [esp + 0xb0], 1
call fcn.10002290
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x64], 8
lea eax, [eax*2 + 2]
push eax
lea ecx, [esp + 0x54]
cmovae ecx, dword [esp + 0x54]
push ecx
push dword [esp + 0x18]
push edi
call dword [sym.imp.MSVCR110.dll_memcpy_s]
add esp, 0x10
lea ecx, [esp + 0x50]
mov dword [esp + 0xa8], 0xffffffff
call fcn.10001a00
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e129
add esp, 4
lea ecx, [esi + esi]
push ecx
push 0
push eax
mov dword [esp + 0x1c], eax
call sub.MSVCR110.dll_memset
add esp, 0xc
push esi
push dword [esp + 0x14]
mov esi, dword [esp + 0x24]
push esi
call edi
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [esp + 0x20]
push 0x1008aec0
call fcn.10008e70
mov edi, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x54]
mov dword [esp + 0xac], 2
call fcn.10008e70
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x54]
lea ecx, [esp + 0x6c]
mov byte [esp + 0xac], 3
call fcn.10053080
add esp, 4
cmp dword [esp + 0x64], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10048dd1
push dword [esp + 0x50]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
mov byte [esp + 0xa8], 6
cmp dword [esp + 0x34], 8
jb 0x10048e00
push dword [esp + 0x20]
call esi
add esp, 4
xor eax, eax
push edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [esp + 0x68]
call fcn.10048fb0
test al, al
je 0x10048e49
lea eax, [esp + 0x68]
cmp ebx, eax
je 0x10048e89
push 0xffffffffffffffff
push 0
mov ecx, ebx
push eax
call fcn.10001f80
mov bl, 1
jmp 0x10048f6a
push 0x1007d0cc
lea ecx, [esp + 0x3c]
call fcn.10008e70
lea edx, [esp + 0x38]
lea ecx, [esp + 0x68]
call fcn.10049120
lea ecx, [esp + 0x38]
mov bl, al
call fcn.10001a00
test bl, bl
je 0x10048e90
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x68]
cmp ecx, eax
je 0x10048e89
push 0xffffffffffffffff
push 0
push eax
call fcn.10001f80
mov bl, 1
jmp 0x10048f6a
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xb0], 7
call fcn.10048500
test al, al
je 0x10048ede
lea ecx, [esp + 0x80]
call fcn.10048fb0
test al, al
jne 0x10048f3f
push 0
push 0x1008aca0
lea ecx, [esp + 0x70]
call fcn.10015470
test eax, eax
jne 0x10048f5c
push 1
push 0x1008aca0
lea ecx, [esp + 0x70]
call fcn.10015470
cmp eax, 0xffffffff
je 0x10048f5c
dec eax
push eax
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x74]
call fcn.1000be10
push eax
lea ecx, [esp + 0x84]
call fcn.10001ac0
lea ecx, [esp + 0x38]
call fcn.10001a00
lea ecx, [esp + 0x80]
call fcn.10048fb0
test al, al
je 0x10048f5c
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x80]
cmp ecx, eax
je 0x10048f58
push 0xffffffffffffffff
push 0
push eax
call fcn.10001f80
mov bl, 1
jmp 0x10048f5e
xor bl, bl
lea ecx, [esp + 0x80]
call fcn.10001a00
cmp dword [esp + 0x7c], 8
jb 0x10048f7a
push dword [esp + 0x68]
call esi
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret