Function at 0x4024a0
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404790
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x944
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], closesocket
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x6cc], 0
xor eax, eax
mov dword [ebp - 0x6cb], eax
mov dword [ebp - 0x2c], 0x1fe
mov byte [ebp - 0x6c0], 0
mov ecx, 0x8f
xor eax, eax
lea edi, [ebp - 0x6bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x42ebd4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x14f
lea ecx, [ebp - 0x92c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx edx, byte [0x42f634]
test edx, edx
je 0x4026d0
push 0x42f634
lea eax, [ebp - 0x7dc]
push eax
call fcn.00402a30
add esp, 8
push 0x2a
lea ecx, [ebp - 0x7dc]
push ecx
call fcn.00402380
add esp, 8
test eax, eax
je 0x4025a3
push 0x42ebc4
push 0x42ebc0
lea edx, [ebp - 0x7dc]
push edx
call fcn.00402bc0
add esp, 0xc
jmp 0x4025b7
push 0x42ebb0
lea eax, [ebp - 0x7dc]
push eax
call section.CODE
add esp, 8
push 0x23f
lea ecx, [ebp - 0x6c0]
push ecx
lea edx, [ebp - 0x7dc]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x3f
lea eax, [ebp - 0x6c0]
push eax
call fcn.00402380
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402610
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00402a50
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 6
div ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4025d0
lea edx, [ebp - 0x6c0]
push edx
call fcn.00402a90
add esp, 4
mov dword [ebp - 0x938], eax
mov eax, dword [ebp - 0x938]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x6c0]
cmp ecx, edx
je 0x40269c
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x5f8]
push ecx
call fcn.00402a30
add esp, 8
lea edx, [ebp - 0x6c0]
push edx
call fcn.004010d0
add esp, 4
mov byte [ebp - 0x93c], al
mov eax, dword [ebp - 0x93c]
and eax, 0xff
test eax, eax
jne 0x40268a
lea ecx, [ebp - 0x92c]
push ecx
lea edx, [ebp - 0x6c0]
push edx
call fcn.00402a30
add esp, 8
jmp 0x402691
mov eax, dword [ebp - 0x24]
mov byte [eax - 1], 0
lea ecx, [ebp - 0x5f8]
mov dword [ebp - 0x24], ecx
jmp 0x4026ce
lea edx, [ebp - 0x5f8]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x6c0]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00402a30
add esp, 8
lea edx, [ebp - 0x92c]
push edx
lea eax, [ebp - 0x6c0]
push eax
call fcn.00402a30
add esp, 8
jmp 0x4026f5
lea ecx, [ebp - 0x5f8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov byte [edx], 0
lea eax, [ebp - 0x92c]
push eax
lea ecx, [ebp - 0x6c0]
push ecx
call fcn.00402a30
add esp, 8
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx]
test eax, eax
jne 0x40272a
push 0xa
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00402a50
add esp, 8
push 0x42eba8
call fcn.00402f30
add esp, 4
push eax
mov edx, dword [ebp - 0x24]
add edx, 5
push edx
call fcn.00402a30
add esp, 8
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x6c0]
push ecx
push 0x42eba0
lea edx, [ebp - 0x7dc]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
call fcn.004015b0
add esp, 4
lea ecx, [ebp - 0x7dc]
push ecx
call fcn.004010a0
add esp, 4
lea edx, [ebp - 0x7dc]
push edx
call fcn.00402ae0
add esp, 4
mov byte [ebp - 0x940], al
mov eax, dword [ebp - 0x940]
and eax, 0xff
test eax, eax
je 0x4027a2
push 0
lea ecx, [ebp - 0x7dc]
push ecx
call fcn.00402380
add esp, 8
mov dword [eax], 0x6c
jmp 0x402765
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [0x42e964]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x42ec3c]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x478]
push ecx
lea edx, [ebp - 0x480]
push edx
push 0
push 0x42eb98
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x42ec48]
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x42ec1c]
cmp dword [ebp - 0x47c], 0
je 0x402804
jmp 0x4028c5
call fcn.004035d0
mov dword [ebp - 0x944], eax
cmp dword [ebp - 0x944], 0
jne 0x402888
lea edx, [ebp - 0x7dc]
push edx
push 4
lea eax, [ebp - 0x478]
push eax
call fcn.00403a40
add esp, 0xc
mov byte [ebp - 0x948], al
mov ecx, dword [ebp - 0x948]
and ecx, 0xff
test ecx, ecx
je 0x402850
mov eax, 1
jmp 0x402955
lea edx, [ebp - 0x7dc]
push edx
push 3
lea eax, [ebp - 0x478]
push eax
call fcn.00403a40
add esp, 0xc
mov byte [ebp - 0x94c], al
mov ecx, dword [ebp - 0x94c]
and ecx, 0xff
test ecx, ecx
je 0x402888
mov eax, 1
jmp 0x402955
lea edx, [ebp - 0x7dc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x478]
push edx
call fcn.00403b20
add esp, 0x10
mov byte [ebp - 0x950], al
mov eax, dword [ebp - 0x950]
and eax, 0xff
test eax, eax
je 0x4028c5
mov eax, 1
jmp 0x402955
mov ecx, dword [ebp + 8]
push ecx
call fcn.004015b0
add esp, 4
mov dword [ebp - 0x930], 0x110
mov edx, dword [ebp + 8]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401240
add esp, 8
push 0x42f6ec
mov edx, dword [ebp - 0x930]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x7dc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401f10
add esp, 0x1c
mov dword [ebp - 0x954], eax
mov edx, dword [ebp - 0x954]
mov dword [ebp - 0x14], edx
jmp 0x402933
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x402953
mov eax, dword [ebp - 0x14]
push eax
call fcn.004034c0
add esp, 4
and eax, 0xff
jmp 0x402955
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret