Function at 0x40d37d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.004a996a
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0x107
call fcn.004a996a
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x52b8ed
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0xff
rep stosb byte es:[edi], al
cmp dword [ebp + 8], 0x63
jne 0x40d3e5
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004ab140
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d41a
push ebx
call fcn.004a9964
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 1
jne 0x40d454
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40d44f
push 6
call fcn.004a9970
add esp, 4
jmp 0x40d54f
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0xc]
push eax
push 0x103
call fcn.004a996a
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0xff
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp - 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40d4bc
push 6
call fcn.004a9970
add esp, 4
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.004a9ee0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x40d4fd
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x40d4fb
imul eax, dword [edi]
jmp 0x40d4f0
mov ecx, eax
cmp ecx, 0xff
jle 0x40d50a
mov ecx, 0xff
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0xff
call fcn.004a9964
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40d54f
push 6
call fcn.004a9970
add esp, 4
push 0x5082b0
push dword [ebp - 4]
call fcn.00401311
add esp, 8
cmp eax, 0
jne 0x40d572
mov eax, 0x5082b0
jmp 0x40d61f
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40d591
mov eax, 0x5082b0
push eax
push 2
mov ebx, 0x138
call fcn.004ab090
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0x508337
push dword [ebp - 0x10]
call fcn.00401311
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40d5d5
push ebx
call fcn.004a9964
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x40d5e9
mov eax, 0x5082b0
jmp 0x40d5ee
mov eax, 0x508337
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402993
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d617
push ebx
call fcn.004a9964
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x40d61f
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d630
push ebx
call fcn.004a9964
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.004a9964
add esp, 4
pop ebx
call fcn.004a9964
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8