Function at 0x457e80
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aeb16
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x82b540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x150], 0
push 0x4f8037
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x14c], 0
movups xmmword [ebp - 0x160], xmm0
call fcn.00409210
push 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0x4f8037
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x138], 0
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - 0x134], 0
call fcn.00409210
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x130], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457f50
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.00409210
push 1
push 0x4e806c
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 2
call fcn.004077d0
mov ecx, dword [ebp - 0x120]
mov esi, closesocket
mov eax, esi
sub eax, ecx
cmp eax, 7
jb 0x458221
cmp dword [ebp - 0x11c], 0xf
lea eax, [ebp - 0x130]
push 7
cmova eax, dword [ebp - 0x130]
push str.adb.exe
push ecx
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x164]
lea ecx, [ebp - 0x17c]
call fcn.0040a5e0
lea ecx, [ebp - 0x160]
call fcn.004078e0
movups xmm0, xmmword [ebp - 0x17c]
mov ecx, dword [ebp - 0x120]
sub esi, ecx
movups xmmword [ebp - 0x160], xmm0
movq xmm0, qword [ebp - 0x16c]
movq qword [ebp - 0x150], xmm0
cmp esi, 0xd
jb 0x458221
cmp dword [ebp - 0x11c], 0xf
lea eax, [ebp - 0x130]
push 0xd
cmova eax, dword [ebp - 0x130]
push 0x4e81c8
push ecx
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x164]
lea ecx, [ebp - 0x17c]
call fcn.0040a5e0
lea ecx, [ebp - 0x148]
call fcn.004078e0
movups xmm0, xmmword [ebp - 0x17c]
cmp dword [ebp - 0x14c], 0xf
lea eax, [ebp - 0x160]
push 0
cmova eax, dword [ebp - 0x160]
push 0x80
push 1
push 0
push 0
movups xmmword [ebp - 0x148], xmm0
push 0xc0000000
movq xmm0, qword [ebp - 0x16c]
push eax
movq qword [ebp - 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4580c6
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
push 0xc8000
push 0x64e620
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x134], 0xf
lea eax, [ebp - 0x148]
push 0
cmova eax, dword [ebp - 0x148]
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x458125
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
push 0x1a210
push 0x716620
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x45815f
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x458155
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4581f7
push ecx
push edx
call fcn.00461e86
add esp, 8
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp ecx, 0xf
jbe 0x4581b0
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4581a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4581f7
push ecx
push edx
call fcn.00461e86
add esp, 8
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
mov byte [ebp - 0x148], 0
cmp ecx, 0xf
jbe 0x458207
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4581fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4581fd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00461e86
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461b92
mov esp, ebp
pop ebp
ret
call fcn.00401730
int3