Function at 0x41b2dd
Capabilities:
Copy file
Write file on windows

Disassembly:
mov eax, 0x45d102
call fcn.004485c4
sub esp, 0xec
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, str.fs::doDownloadFile_88
mov dword [ebp - 0x10], esp
xor edi, edi
push esi
mov dword [ebp - 0x1c], edi
call fcn.004468a0
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebx + 0x30]
jb 0x41b31b
mov ecx, dword [ebx + 4]
jmp 0x41b31e
lea ecx, [ebx + 4]
push eax
movzx eax, byte [ebx + 0x58]
push eax
movzx eax, byte [ebx + 0x38]
push eax
push ecx
push esi
push str.___s__url_s__to.f_d__ui_d__len_post__d_
push edi
call fcn.00437bbc
add esp, 0x1c
push str.http:__
push 7
push edi
push ebx
mov dword [ebx + 0xd8], 2
call fcn.00426f84
test eax, eax
je 0x41b40a
push str.https:__
push 8
push edi
push ebx
call fcn.00426f84
test eax, eax
je 0x41b40a
push edi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], 0xf
call fcn.004173b7
lea eax, [ebp - 0x54]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0041c7c8
cmp byte [ebx + 0x38], 0
pop ecx
je 0x41b3a4
lea eax, [ebx + 0x60]
push eax
lea eax, [ebp - 0x54]
call fcn.0041c961
pop ecx
jmp 0x41b3b3
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebx + 0x3c]
call fcn.00417328
xor eax, eax
inc eax
push edi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebx + 0xd8], eax
call fcn.00417a85
jmp 0x41b84e
cmp byte [ebx + 0x59], 0
mov byte [ebp - 0x11], 0
je 0x41b44c
cmp byte [ebx + 0x38], 0
je 0x41b44c
mov eax, dword [ebx + 0x5c]
push eax
lea esi, [ebx + 0x60]
push esi
push ebx
push dword [ebp + 8]
call fcn.0041b996
test al, al
je 0x41b44c
mov eax, esi
call fcn.0041d1a0
push eax
push str.__cache_hit:__d_bytes
push edi
mov dword [ebx + 0x7c], eax
mov byte [ebp - 0x11], 1
call fcn.00437bbc
add esp, 0xc
cmp byte [ebp - 0x11], 0
jne 0x41b5bf
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x2c], 3
jge 0x41b77d
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.0041f303
pop ecx
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 7
cmp byte [ebx + 0x38], 0
je 0x41b4ff
cmp dword [ebx + 0x78], 0x10
jb 0x41b49b
mov eax, dword [ebx + 0x64]
jmp 0x41b49e
lea eax, [ebx + 0x64]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x24], esi
je 0x41b4c2
cmp esi, 0xffffffff
jne 0x41b50a
cmp dword [ebx + 0x78], 0x10
jb 0x41b4cd
mov ebx, dword [ebx + 0x64]
jmp 0x41b4d0
add ebx, 0x64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Cant_create_file__s__err_d_
push 1
call fcn.00437bbc
add esp, 0x10
cmp esi, edi
je 0x41b4f2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x4c]
call fcn.0041b86d
jmp 0x41b7ec
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0x3c]
call fcn.004172b7
xor esi, esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 8
mov ecx, dword [ebx + 0x7c]
push esi
push dword [ebp - 0x44]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x20], edi
call fcn.0041f90f
test al, al
pop ecx
pop ecx
jne 0x41b67c
push dword [ebp - 0x28]
mov dword [ebp - 0x20], 2
push esi
push str.__inet_read__d_bytes_by__d_portions
push edi
call fcn.00437bbc
mov eax, dword [ebx + 0x7c]
add esp, 0x10
cmp eax, edi
jbe 0x41b597
cmp esi, eax
je 0x41b597
push 0x465cf2
lea ecx, [ebp - 0xcc]
call fcn.00418739
lea eax, [ebp - 0xcc]
push eax
push 1
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xb
call fcn.0041875b
mov byte [ebp - 4], 0xc
push dword [ebx + 0x7c]
push esi
push str.Invalid_downloaded_content_size__d___d
push eax
jmp 0x41b6f5
cmp dword [ebp - 0x38], edi
je 0x41b5a5
push dword [ebp - 0x38]
call fcn.00445bdd
pop ecx
cmp dword [ebp - 0x24], edi
je 0x41b5b3
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x4c]
call fcn.0041b86d
mov byte [ebp - 4], 0
push str.none
lea ecx, [ebx + 0xbc]
call fcn.00415665
test eax, eax
jne 0x41b825
cmp dword [ebx + 0x74], edi
jbe 0x41b825
lea esi, [ebx + 0x60]
push esi
lea ecx, [ebp - 0x74]
call fcn.004188b1
push str..html
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x10
call fcn.00418739
push str..mht
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x11
call fcn.00418739
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 0x12
call fcn.00444180
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0xb0]
mov dword [ebp + 0xc], eax
call fcn.00417a85
push edi
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x10
call fcn.00417a85
cmp dword [ebp + 0xc], edi
je 0x41b816
cmp dword [ebp - 0x5c], 0x10
mov eax, dword [ebp - 0x70]
jae 0x41b66a
lea eax, [ebp - 0x70]
cmp dword [esi + 0x18], 0x10
jb 0x41b7fc
mov esi, dword [esi + 4]
jmp 0x41b7ff
add esi, dword [ebp - 0x34]
inc dword [ebp - 0x28]
cmp byte [ebx + 0x38], 0
je 0x41b704
push edi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x20], 1
push dword [ebp - 0x38]
mov dword [ebp - 0x58], edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41b51c
push 0x465cf2
lea ecx, [ebp - 0xe8]
call fcn.00418739
lea eax, [ebp - 0xe8]
push eax
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.0041875b
mov esi, eax
mov byte [ebp - 4], 0xa
cmp dword [ebx + 0x78], 0x10
jb 0x41b6e4
mov ebx, dword [ebx + 0x64]
jmp 0x41b6e7
add ebx, 0x64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Cant_save_file__s__err_d_
push esi
call fcn.004180c3
add esp, 0x10
mov ecx, eax
call fcn.00418793
push dword [ebp - 0x34]
lea ecx, [ebx + 0x3c]
push dword [ebp - 0x38]
call fcn.00412a9b
jmp 0x41b51c
cmp dword [ebp - 0x20], 2
je 0x41b5bf
cmp byte [ebx + 0x58], 0
je 0x41b7c3
push 0x465cf2
lea ecx, [ebp - 0xb0]
call fcn.00418739
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebx + 0x60]
push eax
push dword [ebp - 0x20]
mov byte [ebp - 4], 0xf
or dword [ebp - 0x1c], 1
call fcn.0041fa77
add esp, 0xc
test al, al
mov byte [ebp - 0x12], 1
jne 0x41b7c7
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], edi
test byte [ebp - 0x1c], 1
je 0x41b7e2
and dword [ebp - 0x1c], 0xfffffffe
push edi
push 1
lea ecx, [ebp - 0xb0]
call fcn.00417a85
cmp byte [ebp - 0x12], 0
jne 0x41b44c
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.0041836d
xor al, al
jmp 0x41b85c
add esi, 4
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp + 8]
lea edi, [ebp - 0x74]
call fcn.0041c2f2
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.00417a85
cmp byte [ebx + 0x59], 0
je 0x41b844
cmp byte [ebx + 0x38], 0
je 0x41b844
cmp byte [ebp - 0x11], 0
jne 0x41b844
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x60]
push eax
push ebx
call fcn.0041bc96
mov dword [ebx + 0xd8], 1
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.0041836d
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8