Function at 0x6d0790
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x16c
mov eax, dword [esp + 0x180]
lea ebx, [esp + 0x36]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x25
mov esi, dword [esp + 0x184]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x188]
mov dword [esp], eax
call fcn.006e9790
mov dword [esp + 4], 0x8e0c80
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x6d0ac0
call fcn.006ec8e0
test eax, eax
je 0x6d0a18
mov dword [esp], ebx
call fcn.006ed3c0
test eax, eax
je 0x6d0b18
fld dword [eax + 0x24]
mov ebx, 0x10000
fstp dword [esi]
fld dword [eax + 0x28]
fstp dword [esi + 4]
fld dword [eax + 0x2c]
fstp dword [esi + 8]
fld dword [eax + 0x30]
fstp dword [esi + 0xc]
fld dword [eax + 0x34]
fstp dword [esi + 0x10]
fld dword [eax + 0x38]
fstp dword [esi + 0x14]
fld dword [eax + 0x3c]
fstp dword [esi + 0x18]
fld dword [eax + 0x40]
fstp dword [esi + 0x1c]
fld dword [eax + 0x44]
fstp dword [esi + 0x20]
fld dword [eax + 0x4c]
fstp dword [esi + 0x24]
fld dword [eax + 0x50]
fstp dword [esi + 0x28]
fld dword [eax + 0x54]
fstp dword [esi + 0x2c]
fld dword [eax + 0x58]
fstp dword [esi + 0x30]
fld dword [eax + 0x5c]
fstp dword [esi + 0x34]
fld dword [eax + 0x60]
fstp dword [esi + 0x38]
fld dword [eax + 0x64]
fstp dword [esi + 0x3c]
fld dword [eax + 0x68]
fstp dword [esi + 0x40]
fld dword [eax + 0x6c]
fstp dword [esi + 0x44]
fld dword [eax + 0x70]
fstp dword [esi + 0x48]
fld dword [eax + 0x74]
fstp dword [esi + 0x4c]
fld dword [eax + 0x78]
fstp dword [esi + 0x50]
fld dword [eax + 0x7c]
fstp dword [esi + 0x54]
fld dword [eax + 0x80]
fstp dword [esi + 0x58]
fld dword [eax + 0x84]
fstp dword [esi + 0x5c]
fld dword [eax + 0x88]
fst dword [esi + 0x60]
fld dword [eax + 0x8c]
fst dword [esi + 0x64]
fld dword [eax + 0x90]
fst dword [esi + 0x68]
fld dword [eax + 0x98]
fst dword [esi + 0x6c]
fldz
fst dword [esi + 0x70]
fld dword [eax + 0x9c]
fst dword [esi + 0x74]
fld dword [eax + 0xa0]
fst dword [esi + 0x78]
fld dword [eax + 0xa4]
fst dword [esp + 0x24]
fstp dword [esi + 0x7c]
fld dword [eax + 0xa8]
mov dword [0x8e0bc0], 0x10000
fst dword [esp + 0x28]
fstp dword [esi + 0x80]
fld dword [eax + 0xac]
fstp dword [esp + 0x2c]
fxch st(2)
fst dword [esi + 0x88]
fcomi st(6)
fxch st(6)
fcmovnbe st(0), st(6)
fstp dword [esi + 0x60]
fxch st(5)
fcomi st(4)
fxch st(4)
fcmovnbe st(0), st(4)
fstp dword [esi + 0x64]
fxch st(3)
fcomi st(2)
fxch st(2)
fcmovnbe st(0), st(2)
fstp dword [esi + 0x68]
fxch st(1)
fcomi st(1)
fxch st(1)
fcmovnbe st(0), st(1)
fstp dword [esi + 0x6c]
fcomi st(2)
fxch st(2)
fcmovnbe st(0), st(2)
fstp dword [esi + 0x74]
fxch st(1)
fcomi st(1)
fxch st(1)
fcmovnbe st(0), st(1)
fstp dword [esi + 0x78]
fld dword [esp + 0x24]
fxch st(1)
fcomi st(1)
fxch st(1)
fcmovnbe st(0), st(1)
fstp dword [esi + 0x7c]
fld dword [esp + 0x28]
fxch st(1)
fcomi st(1)
fxch st(1)
fcmovnbe st(0), st(1)
fstp dword [esi + 0x80]
fld dword [esp + 0x2c]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fstp dword [esi + 0x84]
mov dword [ebp], 0x20202030
mov byte [ebp + 4], 0
mov eax, dword [esp + 0x36]
mov ecx, 0x23
mov dword [0x8e0c80], eax
mov eax, dword [esp + 0x3a]
mov dword [0x8e0c84], eax
mov eax, dword [esp + 0x3e]
mov dword [0x8e0c88], eax
mov eax, dword [esp + 0x42]
mov dword [0x8e0c8c], eax
mov eax, dword [esp + 0x46]
mov dword [0x8e0c90], eax
mov eax, dword [esp + 0x4a]
mov dword [0x8e0c94], eax
mov eax, dword [esp + 0x4e]
mov dword [0x8e0c98], eax
mov eax, dword [esp + 0x52]
mov dword [0x8e0c9c], eax
mov eax, dword [esp + 0x56]
mov dword [0x8e0ca0], eax
movzx eax, byte [esp + 0x5a]
mov byte [0x8e0ca4], al
mov eax, 0x8e0be0
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp]
mov dword [0x8e0bc4], eax
movzx eax, byte [ebp + 4]
mov byte [0x8e0bc8], al
add esp, 0x16c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x7b5d40
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6d0aa0
lea edi, [esp + 0x5b]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.msvcrt.dll_strlen
add eax, edi
mov dword [eax], 0x4f52505c
mov dword [eax + 4], 0x4c4946
mov dword [esp], edi
mov dword [esp + 4], 0x7b5d45
call sub.msvcrt.dll_fopen
mov edi, eax
test eax, eax
je 0x6d0aa0
mov dword [esp], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x93c
mov dword [esp + 4], eax
call fcn.006d0180
mov dword [esp], edi
mov ebx, eax
call sub.msvcrt.dll_fclose
mov dword [0x8e0bc0], ebx
test ebx, ebx
jg 0x6d098e
jmp 0x6d0aac
mov dword [0x8e0bc0], 0
xor ebx, ebx
mov byte [0x8e0c80], 0
add esp, 0x16c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x8e0be0]
lea edi, [esi + 4]
mov ecx, esi
and edi, 0xfffffffc
mov dword [esi], eax
mov eax, dword [0x8e0c68]
sub ecx, edi
mov dword [esi + 0x88], eax
mov esi, 0x8e0be0
sub esi, ecx
add ecx, 0x8c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x8e0bc4]
mov ebx, dword [0x8e0bc0]
mov dword [ebp], eax
movzx eax, byte [0x8e0bc8]
mov byte [ebp + 4], al
add esp, 0x16c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esi + 4]
mov dword [esi], 0
mov dword [esi + 0x88], 0
and edi, 0xfffffffc
sub esi, edi
lea ecx, [esi + 0x8c]
shr ecx, 2
rep stosd dword es:[edi], eax
mov dword [ebp], 0x525245
mov dword [0x8e0bc0], 0
jmp 0x6d0aaa