Function at 0x40114d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
call fcn.00402d4f
test eax, eax
jne 0x401161
leave
ret
push ebx
push esi
push edi
push 3
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [0x40b830]
call dword [sym.imp.USER32.dll_SetWindowPos]
call fcn.00402352
push eax
movzx eax, word [0x40b834]
add eax, 0xbbe
push eax
call fcn.004010b2
pop ecx
pop ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x23
push 0x402
mov ebx, 0x3ed
push ebx
push dword [0x40b830]
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call edi
call fcn.00401d6b
call fcn.00402045
test eax, eax
jne 0x4011ce
xor eax, eax
jmp 0x401412
push 0
push 0x2d
push 0x402
push ebx
push dword [0x40b830]
call esi
push eax
call edi
call fcn.00401d6b
call fcn.00402049
test eax, eax
je 0x4011c7
push 0
push 0x41
push 0x402
push ebx
push dword [0x40b830]
call esi
push eax
call edi
call fcn.00401d6b
call fcn.004026b9
test eax, eax
je 0x4011c7
push 0
push 0x64
push 0x402
push ebx
push dword [0x40b830]
call esi
push eax
call edi
call fcn.00401d6b
test byte [0x40b80c], 2
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, 0x200
je 0x40137d
push 0x104
call fcn.00403178
pop ecx
push 0
push 0x10
push eax
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x401374
push 0x104
call fcn.00403178
mov dword [esp], str.0.0.0.0
push dword [0x40b824]
mov dword [ebp - 8], eax
call fcn.004030f0
test eax, eax
pop ecx
pop ecx
jne 0x40129c
push dword [0x40b81c]
jmp 0x4012a2
push dword [0x40b824]
push str.http:___s_
push dword [ebp - 8]
call fcn.00402f8e
add esp, 0xc
push 0x409200
push dword [ebp - 4]
call fcn.00403000
cmp word [0x40b808], 2
pop ecx
pop ecx
jne 0x401306
push dword [0x40b820]
push dword [ebp - 4]
call fcn.00403000
push 0x4091fc
push dword [ebp - 4]
call fcn.00403000
push dword [0x40b81c]
push dword [ebp - 4]
call fcn.00403000
push 0x4091f8
push dword [ebp - 4]
call fcn.00403000
add esp, 0x20
jmp 0x401316
push dword [0x40b81c]
push dword [ebp - 4]
call fcn.00403000
pop ecx
pop ecx
push str..url
push dword [ebp - 4]
call fcn.00403000
push dword [0x40b81c]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004022bf
add esp, 0x14
push ebx
lea eax, [ebp - 0x208]
push eax
movzx eax, word [0x40b834]
add eax, 0xbc4
push eax
push dword [0x40b814]
call esi
push 0x40
push dword [0x40b82c]
lea eax, [ebp - 0x208]
push eax
push dword [0x40b830]
call edi
push dword [ebp - 8]
call fcn.004030e8
pop ecx
push dword [ebp - 4]
call fcn.004030e8
pop ecx
push ebx
lea eax, [ebp - 0x208]
push eax
movzx eax, word [0x40b834]
add eax, 0xbbd
push eax
push dword [0x40b814]
call esi
call fcn.00401b17
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00402f8e
add esp, 0xc
push 0x24
push dword [0x40b82c]
lea eax, [ebp - 0x408]
push eax
push dword [0x40b830]
call edi
cmp eax, 6
jne 0x40140f
call fcn.00402a89
test eax, eax
je 0x40140f
push ebx
lea eax, [ebp - 0x208]
push eax
movzx eax, word [0x40b834]
add eax, 0xbbf
push eax
push dword [0x40b814]
call esi
push 0x40
push dword [0x40b82c]
lea eax, [ebp - 0x208]
push eax
push dword [0x40b830]
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret