Function at 0x40b970
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45afac
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x4a4]
xor edi, edi
cmp esi, 0x64c
mov dword [esp + 0x18], eax
ja 0x40b9ef
je 0x40b9d2
mov eax, esi
sub eax, 2
je 0x40b9d2
sub eax, 0x648
jne 0x40ba37
push str.http:__support.microsoft.com_kb_290301_zh_cn
push 0x460cd0
call fcn.00406c20
mov ecx, 0x460cac
mov ebx, eax
call fcn.00411160
jmp 0x40ba37
mov eax, esi
sub eax, 0x659
je 0x40ba1a
sub eax, 7
jne 0x40ba37
push str.cleanmgr.exe
push 0x460db8
call fcn.00406c20
mov ecx, 0x460da8
mov ebx, eax
call fcn.00411160
jmp 0x40ba37
push 0x10
push 0x460cc0
push edi
push ecx
call fcn.00406c20
add esp, 4
mov ecx, 0x460d40
mov edx, eax
call fcn.00410df0
push edi
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0x400
push esi
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
push 0x460e08
push 0x400
lea edx, [esp + 0x98]
push 0x200
push edx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x70]
call fcn.0042a750
mov dword [esp + 0x49c], edi
lea eax, [esp + 0x8c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
lea edx, [eax + 2]
jmp 0x40baa0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40baa0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x90]
push eax
lea esi, [esp + 0x24]
call fcn.00406f20
mov ecx, esi
push edi
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x78]
mov byte [esp + 0x4a4], 1
call fcn.00406d90
mov ebp, 8
cmp dword [esp + 0x34], ebp
jb 0x40baf1
mov edx, dword [esp + 0x20]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x88], ebp
mov edx, dword [esp + 0x74]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
jae 0x40bb13
lea edx, [esp + 0x74]
mov ebx, dword [0x471b30]
cmp ebx, edi
je 0x40bb4c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40bb22
sub eax, esi
sar eax, 1
push ebx
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov dword [esp + 0x49c], 0xffffffff
cmp dword [esp + 0x88], ebp
jb 0x40bb6d
mov edx, dword [esp + 0x74]
push edx
call fcn.0043ef40
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40bb87
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x40]
call fcn.00406f20
mov ebx, 2
mov dword [esp + 0x49c], ebx
push ebx
push 0x460e30
lea esi, [esp + 0x5c]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], edi
mov word [esp + 0x60], di
call fcn.00406f20
push 0x460e30
xor eax, eax
lea edx, [esp + 0x3c]
mov byte [esp + 0x4a0], 3
call fcn.0040ee10
cmp eax, 0xffffffff
je 0x40bbfc
mov ecx, dword [esp + 0x68]
push 1
push ecx
mov esi, eax
lea ebx, [esp + 0x40]
call fcn.0040ec60
cmp dword [esp + 0x50], ebp
mov esi, dword [esp + 0x3c]
jae 0x40bc0a
lea esi, [esp + 0x3c]
mov edx, dword [esp + 0x18]
push 0x10
push 0x4602a4
push edx
push ecx
call fcn.00406c20
add esp, 4
mov ecx, esi
mov edx, eax
call fcn.00410df0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x6c], ebp
jb 0x40bc46
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], edi
mov word [esp + 0x58], di
jb 0x40bc6a
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.0043ef12
add esp, 0x48c
ret