Function at 0x40f166
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.00484810
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40f1b2
push ebx
call fcn.0047ee6b
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 1
jne 0x40f1cc
mov dword [ebp - 8], 5
jmp 0x40f2f3
cmp dword [ebp + 8], 2
jne 0x40f1e2
mov dword [ebp - 8], 6
jmp 0x40f2f3
cmp dword [ebp + 8], 3
jne 0x40f1f8
mov dword [ebp - 8], 0
jmp 0x40f2f3
cmp dword [ebp + 8], 4
jne 0x40f20e
mov dword [ebp - 8], 0x14
jmp 0x40f2f3
cmp dword [ebp + 8], 5
jne 0x40f224
mov dword [ebp - 8], 0xb
jmp 0x40f2f3
cmp dword [ebp + 8], 6
jne 0x40f23a
mov dword [ebp - 8], 2
jmp 0x40f2f3
cmp dword [ebp + 8], 7
jne 0x40f250
mov dword [ebp - 8], 7
jmp 0x40f2f3
cmp dword [ebp + 8], 8
jne 0x40f266
mov dword [ebp - 8], 0x1a
jmp 0x40f2f3
cmp dword [ebp + 8], 9
jne 0x40f27c
mov dword [ebp - 8], 0x24
jmp 0x40f2f3
cmp dword [ebp + 8], 0xa
jne 0x40f292
mov dword [ebp - 8], 0x25
jmp 0x40f2f3
cmp dword [ebp + 8], 0xb
jne 0x40f2e9
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40f2c3
push 6
call fcn.0047ee71
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f2df
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0047ee65
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f45e
mov eax, 0x4b433b
jmp 0x40f45e
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
push dword [ebp - 4]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40f322
push 6
call fcn.0047ee71
add esp, 4
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40f341
mov eax, 0x4b433b
push eax
push 2
mov ebx, 0x138
call fcn.00484f40
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 0x80000101
push 0
push 0x5c
push 1
mov ebx, 0x140
call fcn.00484290
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call fcn.00403837
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40f3a5
push ebx
call fcn.0047ee6b
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40f3b5
push ebx
call fcn.0047ee6b
add esp, 4
push 0x80000101
push 0
push 0x5c
push 1
mov ebx, 0x140
call fcn.00484290
add esp, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f3fc
push ebx
call fcn.0047ee6b
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x40f427
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f422
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0047ee65
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f443
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f443
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0047ee65
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40f456
push ebx
call fcn.0047ee6b
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40f45e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40f46f
push ebx
call fcn.0047ee6b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4