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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4045c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x880
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], 0x80000002
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x650], 0
xor eax, eax
mov dword [ebp - 0x64f], eax
mov dword [ebp - 0x2c], 0x1fe
mov byte [ebp - 0x644], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x643]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_listen]
push 0x10e
lea edx, [ebp - 0x868]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [0x42f224]
test eax, eax
je 0x4037aa
push 0x1fe
lea ecx, [ebp - 0x644]
push ecx
push 0x42f224
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x3f
lea edx, [ebp - 0x644]
push edx
call fcn.00402410
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x403694
push 1
mov eax, dword [ebp - 0x24]
push eax
call fcn.00401af0
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 0x403654
push 0x2a
lea edx, [ebp - 0x644]
push edx
call fcn.00402410
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4036ea
mov eax, dword [ebp - 0x24]
add eax, 1
push eax
lea ecx, [ebp - 0x758]
push ecx
call fcn.004023e0
add esp, 8
lea edx, [ebp - 0x758]
push edx
mov eax, dword [ebp - 0x24]
add eax, 5
push eax
call fcn.004023e0
add esp, 8
push 5
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00401af0
add esp, 8
jmp 0x403694
lea edx, [ebp - 0x644]
push edx
call fcn.00401f50
add esp, 4
mov dword [ebp - 0x874], eax
mov eax, dword [ebp - 0x874]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x644]
cmp ecx, edx
je 0x403776
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x57c]
push ecx
call fcn.004023e0
add esp, 8
lea edx, [ebp - 0x644]
push edx
call fcn.00401e20
add esp, 4
mov byte [ebp - 0x878], al
mov eax, dword [ebp - 0x878]
and eax, 0xff
test eax, eax
jne 0x403764
lea ecx, [ebp - 0x868]
push ecx
lea edx, [ebp - 0x644]
push edx
call fcn.004023e0
add esp, 8
jmp 0x40376b
mov eax, dword [ebp - 0x24]
mov byte [eax - 1], 0
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x24], ecx
jmp 0x4037a8
lea edx, [ebp - 0x57c]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x644]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004023e0
add esp, 8
lea edx, [ebp - 0x868]
push edx
lea eax, [ebp - 0x644]
push eax
call fcn.004023e0
add esp, 8
jmp 0x4037cf
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov byte [edx], 0
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x644]
push ecx
call fcn.004023e0
add esp, 8
mov edx, dword [ebp - 0x24]
movsx eax, byte [edx]
test eax, eax
jne 0x40380a
push 0xa
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00401af0
add esp, 8
mov edx, dword [ebp - 0x24]
mov byte [edx + 5], 0x2e
mov eax, dword [ebp - 0x24]
mov byte [eax + 6], 0x62
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 7], 0x69
mov edx, dword [ebp - 0x24]
mov byte [edx + 8], 0x7a
mov eax, dword [ebp - 0x24]
mov byte [eax + 9], 0
push 0x1fe
lea ecx, [ebp - 0x644]
push ecx
lea edx, [ebp - 0x644]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x644]
push ecx
push str.6gI3d
lea edx, [ebp - 0x758]
push edx
call dword [0x42e8b0]
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402df0
add esp, 4
lea ecx, [ebp - 0x758]
push ecx
call fcn.00401df0
add esp, 4
lea edx, [ebp - 0x758]
push edx
call fcn.004016f0
add esp, 4
mov byte [ebp - 0x87c], al
mov eax, dword [ebp - 0x87c]
and eax, 0xff
test eax, eax
je 0x4038a1
push 0
lea ecx, [ebp - 0x758]
push ecx
call fcn.00402410
add esp, 8
mov dword [eax], 0x6c
jmp 0x403864
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [0x406068]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x42e82c]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x444]
push edx
push 0
push 0x4062b0
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x42e838]
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x42e80c]
cmp dword [ebp - 0x440], 0
je 0x403903
jmp 0x4039c4
call fcn.00402ee0
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
jne 0x403987
lea edx, [ebp - 0x758]
push edx
push 4
lea eax, [ebp - 0x43c]
push eax
call fcn.00403330
add esp, 0xc
mov byte [ebp - 0x884], al
mov ecx, dword [ebp - 0x884]
and ecx, 0xff
test ecx, ecx
je 0x40394f
mov eax, 1
jmp 0x403a54
lea edx, [ebp - 0x758]
push edx
push 3
lea eax, [ebp - 0x43c]
push eax
call fcn.00403330
add esp, 0xc
mov byte [ebp - 0x888], al
mov ecx, dword [ebp - 0x888]
and ecx, 0xff
test ecx, ecx
je 0x403987
mov eax, 1
jmp 0x403a54
lea edx, [ebp - 0x758]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x43c]
push edx
call fcn.00403410
add esp, 0x10
mov byte [ebp - 0x88c], al
mov eax, dword [ebp - 0x88c]
and eax, 0xff
test eax, eax
je 0x4039c4
mov eax, 1
jmp 0x403a54
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402df0
add esp, 4
mov dword [ebp - 0x86c], 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.00402a30
add esp, 8
push 0x42f2dc
mov edx, dword [ebp - 0x86c]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x758]
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.00401710
add esp, 0x1c
mov dword [ebp - 0x890], eax
mov edx, dword [ebp - 0x890]
mov dword [ebp - 0x14], edx
jmp 0x403a32
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x403a52
mov eax, dword [ebp - 0x14]
push eax
call fcn.004020b0
add esp, 4
and eax, 0xff
jmp 0x403a54
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