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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bb06
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x16b8
call fcn.004fbbe0
mov eax, dword [0x565730]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, edx
xor edx, edx
push 0x206
mov dword [ebp - 0x1670], eax
push edx
lea eax, [ebp - 0x23e]
push eax
mov dword [ebp - 0x1660], ebx
mov dword [ebp - 0x1678], ecx
mov word [ebp - 0x240], dx
call fcn.004fa130
xor eax, eax
add esp, 0xc
xor ecx, ecx
push eax
mov word [ebp - 0x34], cx
lea ecx, [ebx + 0x30]
push 0x547a3c
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
call fcn.00402000
cmp dword [ebx + 4], 0
mov dword [ebx + 0x20], 0
jne 0x4026a9
mov esi, ebx
call fcn.00402370
test eax, eax
je 0x4027b5
push 0
push 0
push 2
push 1
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 4]
push edi
call fcn.00409133
mov esi, eax
or edi, 0xffffffff
mov dword [ebp - 0x166c], esi
mov dword [ebp - 4], edi
call fcn.004058f3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4026e9
push 0x80004005
call fcn.00402130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1648], eax
push 0
lea ecx, [ebp - 0x1648]
push ecx
push 5
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00408d7f
mov edx, dword [ebp - 0x1648]
push edx
call fcn.004f8de3
add esp, 4
push 0
mov dword [ebx + 0x34], eax
call fcn.004f89cd
fldz
mov dword [ebp - 0x1658], eax
fstp qword [ebp - 0x16a0]
add esp, 4
lea eax, [ebp - 0x1658]
push eax
lea ecx, [ebp - 0x16a0]
mov dword [ebp - 0x1654], edx
mov dword [ebp - 0x1698], 0
call fcn.00403420
test esi, esi
je 0x402af5
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x165c], eax
test eax, eax
jne 0x4027d5
mov edx, dword [esi]
mov eax, dword [edx + 0x50]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x1648]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4027b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f86c7
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x240]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [ebp - 0x34]
call fcn.00403160
mov eax, edi
mov esi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4027f3
lea edi, [ebp - 0x240]
sub eax, esi
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402810
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea edx, [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1664], eax
mov dword [ebp - 0x1674], esi
call fcn.004058f3
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40286a
push 0x80004005
call fcn.00402130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1644], eax
fldz
fstp qword [ebx + 0x38]
mov dword [ebp - 0x1650], esi
mov byte [ebp - 4], 4
mov dword [ebp - 0x164c], esi
mov edi, dword [ebp - 0x166c]
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
push 0xfff
lea eax, [ebp - 0x1640]
push eax
mov ecx, edi
call edx
mov esi, eax
mov dword [ebp - 0x1668], esi
test esi, esi
je 0x402a1e
mov edx, dword [ebp - 0x1664]
push 0
lea eax, [ebp - 0x1674]
push eax
push esi
lea ecx, [ebp - 0x1640]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [ebp - 0x164c], esi
push 0
call fcn.004f89cd
fldz
mov dword [ebp - 0x1688], eax
fstp qword [ebp - 0x1694]
add esp, 4
lea eax, [ebp - 0x1688]
push eax
lea ecx, [ebp - 0x1694]
mov dword [ebp - 0x1684], edx
mov dword [ebp - 0x168c], 0
call fcn.00403420
lea ecx, [ebp - 0x16a0]
push ecx
lea esi, [ebp - 0x16c8]
lea eax, [ebp - 0x1694]
call fcn.004032a0
fldz
fld qword [ebp - 0x16c8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x40294d
fld qword [0x547de8]
jmp 0x402953
fld qword [0x547ab8]
faddp st(1)
fmul qword [0x547e00]
call fcn.004fc696
mov dword [ebp - 0x167c], edx
mov edx, dword [ebp - 0x164c]
mov dword [ebp - 0x1680], eax
fild qword [ebp - 0x1680]
fstp qword [ebp - 0x16b0]
fild dword [ebp - 0x164c]
test edx, edx
jns 0x40298e
fadd qword [0x547e28]
fst qword [ebp - 0x1658]
fmul qword [0x547e20]
fidiv dword [ebx + 0x34]
fst qword [ebp - 0x16b8]
fsub qword [ebx + 0x38]
fcomp qword [0x547e18]
fnstsw ax
test ah, 1
jne 0x402a18
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
fldz
fld qword [ebp - 0x16b0]
mov ecx, dword [ebx + 4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4029f7
fld qword [ebp - 0x1658]
sub esp, 8
fmul qword [0x547e10]
fdivrp st(1)
fst qword [ebx + 0x10]
fstp qword [esp]
push str.Downloading_Files...___0.1f_Kb_s_
call fcn.00403040
add esp, 0xc
jmp 0x402a0f
push str.Downloading_Files...
fstp st(0)
call fcn.00403040
fld qword [ebp - 0x1658]
fstp qword [ebx + 0x10]
add esp, 4
fld qword [ebp - 0x16b8]
fstp qword [ebx + 0x38]
mov esi, dword [ebp - 0x1668]
mov eax, dword [ebp - 0x1650]
inc eax
mov dword [ebp - 0x1650], eax
cmp eax, 0x3e8
jne 0x402a79
mov eax, dword [ebp - 0x1644]
cmp dword [eax - 4], 1
jle 0x402a53
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x1644]
call fcn.00401e60
mov eax, dword [ebp - 0x1644]
fld qword [ebx + 0x10]
mov ecx, dword [ebp - 0x164c]
sub esp, 8
fstp qword [esp]
push ecx
mov ecx, dword [ebx + 4]
push eax
call fcn.00403040
add esp, 0x10
mov dword [ebp - 0x1650], 0
test esi, esi
jne 0x402891
mov edx, dword [ebp - 0x1664]
push edx
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x20]
push eax
mov ecx, edi
call fcn.0040800e
push esi
lea eax, [ebx + 0x30]
push eax
push 0x15
mov ecx, edi
call fcn.00408d7f
mov edx, dword [edi]
mov eax, dword [edx + 0x50]
mov ecx, edi
call eax
mov ecx, dword [ebp - 0x165c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1644]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402af5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 4]
push 0x547a3c
call fcn.00403040
lea eax, [ebp - 0x240]
add esp, 4
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b10
mov ecx, dword [ebp - 0x1670]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x240]
push edx
call fcn.00402000
lea eax, [ebp - 0x34]
lea edx, [eax + 2]
jmp 0x402b40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b40
mov ecx, dword [ebp - 0x1678]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402000
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1648]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4027b7