Function at 0x4012f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
lea eax, [ebp - 8]
push esi
push edi
push 0x41d8a0
push str.INI_tenkiVC.ini
push eax
call fcn.004042b7
add esp, 0xc
test eax, eax
jne 0x401614
mov eax, dword [ebp - 8]
lea edi, [ebp - 0x168]
mov dword [ebp - 4], eax
xor esi, esi
push eax
push 0x4c
push edi
call fcn.004044f1
add esp, 0xc
test eax, eax
je 0x401345
inc esi
add edi, 0x4c
cmp esi, 2
jg 0x401345
mov eax, dword [ebp - 4]
jmp 0x401327
push dword [ebp - 4]
call fcn.0040447a
add esp, 4
lea eax, [ebp - 0x168]
push 0x41d8b4
push eax
call fcn.0040410f
mov edi, eax
lea eax, [ebp - 0x11c]
push 0x41d8b4
push eax
call fcn.0040410f
test eax, eax
cmovne edi, eax
lea eax, [ebp - 0x80]
push edi
push str._s_GMTfile
push eax
call fcn.0040408b
lea ecx, [ebp - 0x80]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401391
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00403e08
add esp, 4
mov dword [0x422a28], eax
lea edx, [ebp - 0x80]
mov edi, edi
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x4013b0
push dword [0x422a28]
lea eax, [ebp - 0x80]
push str._s_data
push eax
call fcn.0040408b
lea ecx, [ebp - 0x80]
add esp, 0xc
lea edx, [ecx + 1]
jmp 0x4013e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4013e0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00403e08
add esp, 4
mov dword [0x422a24], eax
lea edx, [ebp - 0x80]
lea ecx, [ecx]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x401400
lea eax, [ebp - 0xd0]
push 0x41d8b4
push eax
call fcn.0040410f
mov esi, eax
add esp, 8
test esi, esi
je 0x401460
cmp byte [esi], 0x2d
je 0x401460
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401432
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00403e08
add esp, 4
mov dword [0x4228d0], eax
lea esp, [esp]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x401450
jmp 0x4014a3
push edi
lea eax, [ebp - 0x80]
push str._s_GPV
push eax
call fcn.0040408b
lea ecx, [ebp - 0x80]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401478
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00403e08
add esp, 4
mov dword [0x4228d0], eax
lea edx, [ebp - 0x80]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x401495
push 0x41d89c
lea eax, [ebp - 4]
push str.INI_wget.ini
push eax
call fcn.004042b7
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x40150e
push 0x41d898
lea eax, [ebp - 4]
push str.INI_wget.ini
push eax
call fcn.004042b7
mov ax, word [0x41d8ec]
add esp, 0xc
movq xmm0, qword [str._nv__c__t7]
mov word [0x422a44], ax
mov al, byte [0x41d8ee]
push dword [ebp - 4]
movq qword [0x422a3c], xmm0
push 0x422a3c
mov byte [0x422a46], al
call fcn.004046f4
add esp, 8
jmp 0x40151e
push eax
push 0x10
push 0x422a3c
call fcn.004044f1
add esp, 0xc
push dword [ebp - 4]
call fcn.0040447a
add esp, 4
push str.PATH
call fcn.00404959
add esp, 4
mov esi, eax
mov edx, str.cygwin_bin
push 0
push ecx
push 0x422880
mov ecx, esi
call fcn.00401910
add esp, 0xc
mov edx, str.SUBVC
push 0
push ecx
push 0x42287c
mov ecx, esi
call fcn.00401910
add esp, 0xc
mov edx, str.gsgs
push 0xd
push ecx
push 0x422874
mov ecx, esi
call fcn.00401910
mov ecx, dword [0x422874]
add esp, 0xc
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401584
mov eax, dword [str.gswin32c.exe]
mov dword [ecx], eax
mov eax, dword [0x41d918]
mov dword [ecx + 4], eax
mov eax, dword [0x41d91c]
mov dword [ecx + 8], eax
mov ax, word [0x41d920]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x80]
push 0x64
push eax
push str.GMTHOME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x80]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4015c4
mov eax, dword [str._bin]
mov dword [ecx], eax
mov al, byte [0x41d930]
mov byte [ecx + 4], al
lea ecx, [ebp - 0x80]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4015e3
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00403e08
add esp, 4
mov dword [0x422878], eax
lea edx, [ebp - 0x80]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x401600
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.INI_tenkiVC.ini
push str._n_s_nFile_Open_Error_n
call fcn.00404645
add esp, 8
call fcn.00401850
int3