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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ca66
mov eax, dword fs:[0]
push eax
mov eax, 0x1290
call fcn.0052f2b0
mov eax, dword [0x5b5450]
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 edi, ecx
cmp byte [edi + 0x98], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1298], 0
jne 0x40cb6e
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x592608
mov ecx, esi
mov byte [esi], 0
call fcn.004023c0
jmp 0x40cdcc
push 4
push ecx
push str._r_n_r_n
lea ecx, [edi + 0x64]
call fcn.00408e60
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cb4a
push ebx
push 0
lea eax, [edi + 0x64]
push eax
lea ecx, [ebp - 0x1294]
mov dword [ebp - 0x1280], 0xf
mov dword [ebp - 0x1284], 0
mov byte [ebp - 0x1294], 0
call fcn.00402540
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x74]
sub eax, ebx
sub eax, 4
push eax
lea eax, [ebx + 4]
push eax
lea eax, [edi + 0x64]
push eax
lea ecx, [ebp - 0x127c]
mov dword [ebp - 0x1268], 0xf
mov dword [ebp - 0x126c], 0
mov byte [ebp - 0x127c], 0
call fcn.00402540
push 0x16
push ecx
push str.Content_Encoding:_gzip
lea ecx, [ebp - 0x1294]
mov byte [ebp - 4], 1
call fcn.00408e60
cmp eax, 0xffffffff
je 0x40cd75
lea eax, [ebp - 0x264]
push eax
push 0x124
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x592690
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp dword [ebp - 0x1268], 0x10
lea eax, [ebp - 0x13c]
push 0x592694
lea ebx, [ebp - 0x127c]
cmovae ebx, dword [ebp - 0x127c]
push eax
call fcn.0052cc71
mov edi, eax
add esp, 8
test edi, edi
jne 0x40cc7c
push 0x592608
mov ecx, esi
call fcn.00402190
jmp 0x40cd83
push edi
push 1
push dword [ebp - 0x126c]
push ebx
call fcn.0052e6db
push edi
call fcn.0052caea
add esp, 0x14
lea eax, [ebp - 0x13c]
push 0x5917b4
push eax
call fcn.00412d90
mov edi, eax
test edi, edi
jne 0x40cce1
lea eax, [ebp - 0x13c]
push eax
call fcn.0052e759
add esp, 4
push 0x592608
mov ecx, esi
call fcn.00402190
lea ecx, [ebp - 0x127c]
call fcn.004021f0
lea ecx, [ebp - 0x1294]
call fcn.004021f0
jmp 0x40cdcc
push 0x592608
lea ecx, [ebp - 0x127c]
call fcn.00403d00
push 0x1000
lea eax, [ebp - 0x1264]
push eax
push edi
call fcn.00412db0
test eax, eax
jle 0x40cd30
push eax
lea eax, [ebp - 0x1264]
push eax
lea ecx, [ebp - 0x127c]
call fcn.00403e30
push 0x1000
lea eax, [ebp - 0x1264]
push eax
push edi
call fcn.00412db0
test eax, eax
jg 0x40cd07
push edi
jne 0x40cd5a
call fcn.00412d40
lea eax, [ebp - 0x13c]
push eax
call fcn.0052e759
add esp, 4
lea eax, [ebp - 0x127c]
push eax
mov ecx, esi
call fcn.00403c10
jmp 0x40ccc6
call fcn.00412d40
lea eax, [ebp - 0x13c]
push eax
call fcn.0052e759
add esp, 4
push 0
jmp 0x40ccbf
lea eax, [ebp - 0x127c]
push eax
mov ecx, esi
call fcn.00403c10
cmp dword [ebp - 0x1268], 0x10
jb 0x40cd9a
push dword [ebp - 0x127c]
call fcn.00418340
add esp, 4
cmp dword [ebp - 0x1280], 0x10
mov byte [ebp - 0x127c], 0
mov dword [ebp - 0x126c], 0
mov dword [ebp - 0x1268], 0xf
jb 0x40cdcc
push dword [ebp - 0x1294]
call fcn.00418340
add esp, 4
mov eax, esi
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.0052c359
mov esp, ebp
pop ebp
ret 4