Function at 0x10041803
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 8
call fcn.10207bab
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0x107
call fcn.10207bab
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x10281f91
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
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 1
jne 0x10041877
mov dword [ebp - 4], 0
jmp 0x1004187d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 8]
push eax
push 0x103
call fcn.10207bab
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 - 4]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100418e9
push 0x7d
push 0x43e90a4
push 6
call fcn.10207bbd
add esp, 0xc
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.10208410
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 0x1004192a
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x10041928
imul eax, dword [edi]
jmp 0x1004191d
mov ecx, eax
cmp ecx, 0xff
jle 0x10041937
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.10207bb1
add esp, 4
pop eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.10208b70
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10041984
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x100419bf
push 0xdd
push 0x43e90a4
push 6
call fcn.10207bbd
add esp, 0xc
push 0x10259736
push dword [ebp - 0xc]
call fcn.10006935
add esp, 8
cmp eax, 0
jne 0x100419e2
mov eax, 0x10259736
jmp 0x10041a7b
cmp dword [ebp + 8], 1
jne 0x10041a5b
push reloc.WS2_32.dll_bind
push 0
push 1
mov ebx, 6
call fcn.100137ea
push reloc.WS2_32.dll_connect
push 0
push str.Temp
push reloc.WS2_32.dll_connect
push 0
push str.History
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10041a2d
mov eax, 0x10259736
push eax
push 6
mov ebx, 0x180
call fcn.10209d10
add esp, 0x4c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10041a57
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x1025f519
push dword [ebp - 0xc]
mov ecx, 2
call fcn.10001238
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x10041a7b
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.10207bb1
add esp, 4
pop ebx
call fcn.10207bb1
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10041aa8
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8