Function at 0x4ed760
Capabilities:
Create directory
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5687e1
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0x864], eax
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0x878]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add eax, 0x54
add eax, ecx
push eax
call fcn.004729c0
test eax, eax
je 0x4edd17
call fcn.00402a00
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4ed7e2
push 0x80004005
call fcn.004027b0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x880], 1
lea ecx, [esp + 0x3c]
push 0x592b44
call fcn.004031c0
mov byte [esp + 0x880], 2
call fcn.00402a00
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4ed82d
push 0x80004005
call fcn.004027b0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x880], 4
mov edx, str.urllog
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004820b0
mov edi, dword [esp + 0x30]
add esp, 8
cmp dword [edi - 0xc], 0
jle 0x4edca8
lea ecx, [esp + 0x10]
call fcn.00482350
mov byte [esp + 0x880], 5
mov eax, dword [0x5ba51c]
test eax, eax
je 0x4ed8a3
cmp dword [eax + 0x180], 0
je 0x4ed8a3
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x54]
lea ecx, [esp + 0x10]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
push 0
push dword [esp + 0x14]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 2
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x588bb0
lea eax, [esp + 0x14]
push 0x58b238
push eax
call fcn.00443ea0
add esp, 0xc
push 0
push dword [esp + 0x14]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 2
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x24]
call fcn.00402b10
mov byte [esp + 0x880], 6
lea eax, [esp + 0x24]
push edi
push dword [esp + 0x14]
push 0x58ae70
push eax
call fcn.00415d20
push 0x58c254
push dword [esp + 0x38]
call fcn.0052e5ea
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x4edc0e
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
lea ecx, [esi + 0x14]
mov eax, dword [eax + 4]
add ecx, eax
je 0x4ed945
add ecx, 4
jmp 0x4ed947
xor ecx, ecx
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push str.Browser_
lea ecx, [esp + 0x10]
call fcn.00443fd0
mov eax, dword [esi + 0x80]
lea ecx, [esp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
push 0x58aed0
lea ecx, [esp + 0x10]
call fcn.00443fd0
mov eax, dword [esi + 0x84]
lea ecx, [esp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
push 0x58aed0
lea ecx, [esp + 0x10]
call fcn.00443fd0
movdqu xmm0, xmmword [esp + 0x44]
sub esp, 0x10
lea ecx, [esp + 0x64]
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004efba0
add esp, 0x10
mov byte [esp + 0x880], 7
cmp dword [eax + 0x14], 8
jb 0x4ed9df
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x10]
call fcn.00443fd0
mov byte [esp + 0x880], 6
cmp dword [esp + 0x68], 8
jb 0x4eda04
push dword [esp + 0x54]
call fcn.005295dd
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
push str._777_200
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.00443fd0
cmp dword [esi + 0x44], 0
lea ecx, [esp + 0xc]
jbe 0x4edb9d
push 0x592b80
call fcn.00443fd0
lea ecx, [esp + 0x14]
call fcn.00402b10
mov byte [esp + 0x880], 8
lea ecx, [esp + 0x54]
call fcn.004ec120
mov byte [esp + 0x880], 9
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x44], ecx
jbe 0x4edb17
xor edx, edx
mov dword [esp + 0x20], edx
jmp 0x4eda80
push dword [esi + 4]
cmp ecx, dword [esi + 0x44]
jae 0x4edb93
mov eax, dword [esi + 0x40]
push dword [eax + edx + 0x18]
lea ecx, [edx + eax]
push ecx
mov ecx, dword [ecx + 0x14]
mov esi, esp
sub ecx, 0x10
mov dword [esp + 0x4c], esp
mov dword [esp + 0x40], esi
call fcn.004022c0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x88c], 0xb
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x44]
jae 0x4edb93
mov ecx, dword [esi + 0x40]
add ecx, dword [esp + 0x2c]
push ecx
mov eax, esp
mov dword [esp + 0x44], esp
push eax
add ecx, 4
call fcn.00436c90
mov byte [esp + 0x890], 0xc
mov byte [esp + 0x890], 9
lea ecx, [esp + 0x64]
call fcn.004ec1b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc ecx
add edx, 0x50
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp ecx, dword [esi + 0x44]
jb 0x4eda80
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
call fcn.004ec2a0
push dword [eax]
lea eax, [esp + 0x18]
push 0x58b3a0
push eax
call fcn.00415d20
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00443ec0
push 2
push 0x592b84
lea ecx, [esp + 0x14]
call fcn.00443ec0
mov byte [esp + 0x880], 8
lea ecx, [esp + 0x54]
call fcn.004edd40
mov byte [esp + 0x880], 6
or ecx, 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4edba7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4edba7
push 0x80070057
call fcn.004027b0
push str._text_html
call fcn.00443fd0
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
add eax, eax
cmp dword [esi - 4], 1
mov dword [esp + 0x14], eax
jle 0x4edbce
push dword [esi - 0xc]
lea ecx, [esp + 0x10]
call fcn.004024c0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
xor edx, edx
test eax, eax
je 0x4edbf3
cmp ecx, 4
jl 0x4edbe0
xor ecx, ecx
jmp 0x4edbe1
inc ecx
mov al, byte [ecx + 0x5898b8]
xor byte [edx + esi], al
inc edx
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x4edbd7
push dword [esp + 0x30]
push 1
push eax
push esi
call fcn.0052b6e4
push dword [esp + 0x40]
call fcn.0052c324
add esp, 0x14
jmp 0x4edc5c
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x74], ax
lea eax, [esp + 0x76]
push eax
call fcn.00531bd0
mov eax, dword [esp + 0x24]
add esp, 0xc
push dword [eax + 0x84]
push dword [eax + 0x80]
lea eax, [esp + 0x74]
push str.Cant_save_weblog___s____s_n
push 0x400
push 0x400
push eax
call fcn.0052de9c
add esp, 0x18
mov dword [esp + 0x2c], 1
mov byte [esp + 0x880], 5
or ecx, 0xffffffff
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4edc82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x880], 4
or ecx, 0xffffffff
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4edca8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x880], 2
lea edx, [edi - 0x10]
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4edccc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x880], 1
mov ecx, edi
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4edcf1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x880], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4edd13
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x878]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x864]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 4