Function at 0x40139b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
xor esi, esi
xor bl, bl
cmp dword [ebp + 8], esi
push edi
jle 0x4013f1
mov eax, dword [ebp + 0xc]
push dword [eax + esi*4]
push esi
push str.argc:_d__argv:_s_n
call fcn.00404f50
mov eax, dword [ebp + 0xc]
push str._pre
push dword [eax + esi*4]
call fcn.0040b010
add esp, 0x14
test eax, eax
jne 0x4013d7
mov bl, 1
inc esi
cmp esi, dword [ebp + 8]
jl 0x4013ad
test bl, bl
je 0x4013f1
push str.preload_the_files_all_n
call fcn.00404f50
pop ecx
call fcn.00401365
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
and dword [ebp - 4], 0
mov ebx, 0x411f88
push 0x200
push ebx
push 0xc7
push dword [0x412188]
call esi
mov edi, 0x411f20
push 0x64
push edi
push 0xc8
push dword [0x412188]
call esi
mov eax, dword [ebp + 0xc]
push str.shell
push dword [eax]
call fcn.00404ed0
pop ecx
test eax, eax
pop ecx
jbe 0x401455
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], 3
mov eax, dword [eax]
mov dword [ebp + 0xc], 0x40f0b4
mov dword [0x40f0b4], eax
cmp dword [ebp + 8], 1
jle 0x401507
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax], 0x2d
jne 0x401507
cmp byte [eax + 1], 0x53
jne 0x401507
push 0x40f540
mov esi, 0x40f3a0
push 0x40f39c
push esi
call fcn.00404dd8
push 0x40f560
push 0x40f39c
push esi
call fcn.00404dd8
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp + 8], esi
jle 0x4014cb
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax], 0x2d
jne 0x4014cb
cmp byte [eax + 1], 0x68
jne 0x4014cb
lea eax, [ebp + 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp + 8]
push eax
call fcn.004015e8
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.0040122c
cmp eax, 7
pop ecx
jne 0x40151e
cmp dword [ebp + 8], esi
jle 0x4014ef
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax], 0x2d
jne 0x4014ef
cmp byte [eax + 1], 0x63
je 0x40151e
push str.rwxre.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x401525
push 0x10
push 0xcb
jmp 0x40153f
call fcn.00401155
test eax, eax
je 0x4014a0
push 0x10
push 0xca
call fcn.004011ef
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push str.rwxre_main
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40154b
push 0x10
push 0xcc
call fcn.004011ef
pop ecx
or eax, 0xffffffff
pop ecx
jmp 0x401520
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00404d80
mov eax, dword [ebp + 8]
and dword [ebp - 0x30], 0
add esp, 0xc
mov esi, str.RacerMessageWindowccn_racerpc_jl
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
push str.TRAYICON_WINDOWCLASS
mov dword [ebp - 0x38], 0x24
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], str.3.3.130.345
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], str.chrome_titlebarno_closeno_dialogno
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 1
lea ecx, [ebp - 0x74]
push dword [0x40d16c]
push 2
push str.c:p
call fcn.00403a11
push esi
lea ecx, [ebp - 0x74]
call fcn.00403bb3
lea ecx, [ebp - 0x74]
call fcn.00403bdc
lea ecx, [ebp - 0x74]
call fcn.00403adb
lea eax, [ebp - 0x38]
push eax
call dword [ebp - 4]
pop ecx
mov esi, eax
lea ecx, [ebp - 0x6c]
call fcn.00403ac8
lea ecx, [ebp - 0x6c]
call fcn.0040398e
mov eax, esi
jmp 0x401520