Function at 0x1007fbc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x100ce00c]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push eax
mov dword [esp + 0x18], edx
mov edi, ecx
mov dword [esp + 0x14], ebx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1007fc4d
test ebx, ebx
jne 0x1007fc0e
mov eax, dword [edi + 8]
mov dword [eax + 8], ebx
add dword [edi + 8], 0x10
jmp 0x1007fca1
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1007fc11
sub ebx, ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x1007fc2c
mov ecx, edi
call fcn.10079ab0
mov edx, dword [esp + 0x10]
mov ecx, edi
mov esi, dword [edi + 8]
push ebx
call fcn.10086340
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 4
add dword [edi + 8], 0x10
jmp 0x1007fca1
push 0x100c6558
push 0x100c655c
mov edx, eax
mov ecx, edi
call fcn.1006f150
push ebx
push 0x100c6560
mov edx, eax
mov ecx, edi
call fcn.1006f150
mov eax, dword [edi + 8]
add esp, 0x10
lea edx, [eax - 0x10]
cmp edx, eax
jae 0x1007fc9b
nop dword [eax]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edx - 0x10], eax
mov dword [edx - 0xc], ecx
mov eax, dword [edx + 8]
mov dword [edx - 8], eax
add edx, 0x10
mov eax, dword [edi + 8]
cmp edx, eax
jb 0x1007fc80
add eax, 0xfffffff0
mov dword [edi + 8], eax
push 0x105
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1007fd63
cmp eax, 0x105
je 0x1007fd63
lea eax, [esp + 0x28]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x1007fd63
mov byte [eax], 0
mov eax, dword [edi + 8]
sub eax, 0x10
cmp dword [eax + 8], 4
je 0x1007fd16
mov edx, eax
mov ecx, edi
call fcn.1008c400
test eax, eax
jne 0x1007fcfe
xor edx, edx
jmp 0x1007fd1b
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x1007fd10
mov ecx, edi
call fcn.10079ab0
mov eax, dword [edi + 8]
sub eax, 0x10
mov edx, dword [eax]
add edx, 0x10
lea eax, [esp + 0x28]
mov ecx, edi
push eax
push 0x100c638c
call fcn.1006f150
mov eax, dword [edi + 8]
add esp, 8
lea edx, [eax - 0x10]
cmp edx, eax
jae 0x1007fd5b
nop dword [eax]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edx - 0x10], eax
mov dword [edx - 0xc], ecx
mov eax, dword [edx + 8]
mov dword [edx - 8], eax
add edx, 0x10
mov eax, dword [edi + 8]
cmp edx, eax
jb 0x1007fd40
add eax, 0xfffffff0
mov dword [edi + 8], eax
jmp 0x1007fd74
push str.unable_to_get_ModuleFileName
push edi
call fcn.1006e5d0
mov eax, dword [edi + 8]
add esp, 8
mov ebx, dword [esp + 0x14]
lea esi, [eax - 0x20]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007fd80
sub ecx, edx
mov edx, ebx
push ecx
mov ecx, edi
call fcn.10086340
mov dword [esp + 0x1c], eax
add esp, 4
mov eax, dword [edi + 8]
mov edx, esi
sub eax, 0x10
mov dword [esp + 0x20], 4
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1008c6d0
add dword [edi + 8], 0xfffffff0
add esp, 8
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10093402
mov esp, ebp
pop ebp
ret