Function at 0x41c280
Capabilities:
Check http status code
Link many functions at runtime
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x29f4
call fcn.00492020
mov eax, dword [0x4f22ec]
xor eax, esp
mov dword [esp + 0x29f0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x58], eax
xor eax, eax
mov word [esp + 0x60], ax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x16c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, edx
mov dword [esp + 0x74], eax
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x90], 0x4d5a54
mov dword [esp + 0x94], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x54], 0x3c
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0x40
mov dword [esp + 0x74], 1
mov dword [esp + 0x7c], 0x80
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
cmp dword [0x53c1a8], eax
jne 0x41c3cd
push str.InternetCrackUrlA
push ecx
call fcn.0041b950
add esp, 4
push eax
call esi
mov dword [0x53c1a8], eax
test eax, eax
jne 0x41c3cd
call fcn.00440bb0
push eax
push str.WinInet
push str.InternetCrackUrlA
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x41cc86
cmp dword [0x53c288], 0
jne 0x41c412
push str.InternetConnectA
push ecx
call fcn.0041b950
add esp, 4
push eax
call esi
mov dword [0x53c288], eax
test eax, eax
jne 0x41c412
call fcn.00440bb0
push eax
push str.WinInet
push str.InternetConnectA
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x41cc86
cmp dword [0x53c258], 0
jne 0x41c457
push str.InternetReadFile
push ecx
call fcn.0041b950
add esp, 4
push eax
call esi
mov dword [0x53c258], eax
test eax, eax
jne 0x41c457
call fcn.00440bb0
push eax
push str.WinInet
push str.InternetReadFile
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x41cc86
cmp dword [0x53c1b4], 0
jne 0x41c49c
push str.InternetCloseHandle
push ecx
call fcn.0041b950
add esp, 4
push eax
call esi
mov dword [0x53c1b4], eax
test eax, eax
jne 0x41c49c
call fcn.00440bb0
push eax
push str.WinInet
push str.InternetCloseHandle
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x41cc86
cmp dword [0x53c1b0], 0
jne 0x41c4e1
push str.HttpOpenRequestA
push ecx
call fcn.0041b950
add esp, 4
push eax
call esi
mov dword [0x53c1b0], eax
test eax, eax
jne 0x41c4e1
call fcn.00440bb0
push eax
push str.WinInet
push str.HttpOpenRequestA
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x41cc86
cmp dword [0x53c29c], 0
jne 0x41c526
push str.HttpSendRequestA
push ecx
call fcn.0041b950
add esp, 4
push eax
call esi
mov dword [0x53c29c], eax
test eax, eax
jne 0x41c526
call fcn.00440bb0
push eax
push str.WinInet
push str.HttpSendRequestA
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x41cc86
cmp dword [0x53c280], 0
jne 0x41c56b
push str.HttpQueryInfoA
push ecx
call fcn.0041b950
add esp, 4
push eax
call esi
mov dword [0x53c280], eax
test eax, eax
jne 0x41c56b
call fcn.00440bb0
push eax
push str.WinInet
push str.HttpQueryInfoA
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
add esp, 0x10
jmp 0x41cc86
mov esi, dword [esp + 0x30]
mov dword [0x4fa958], 0
mov dword [0x5430cc], 0x194
test esi, esi
je 0x41c59d
push 0
push 0
push 0
push 0
push esi
xor edx, edx
or ecx, 0xffffffff
call fcn.004510c0
add esp, 0x14
test edi, edi
jne 0x41c5b8
push 0xd4
push str.C:UsersgamerDownloads_rufus72_rufus_7_src_net.c
push str.url___NULL
call fcn.0049ed6b
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41c5c6
mov dword [eax], 0
test ebx, ebx
je 0x41c5fb
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c5d0
sub ecx, edx
je 0x41c5f6
jmp 0x41c5e0
mov al, byte [ebx + ecx]
cmp al, 0x2f
je 0x41c5f5
cmp al, 0x5c
je 0x41c5f5
sub ecx, 1
jne 0x41c5e0
lea eax, [ebx + ecx]
jmp 0x41c629
inc ecx
lea eax, [ebx + ecx]
jmp 0x41c629
test edi, edi
jne 0x41c603
xor eax, eax
jmp 0x41c629
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c608
sub ecx, edx
je 0x41c626
mov al, byte [edi + ecx]
cmp al, 0x2f
je 0x41c625
cmp al, 0x5c
je 0x41c625
sub ecx, 1
jne 0x41c613
jmp 0x41c626
inc ecx
lea eax, [edi + ecx]
mov dword [esp + 0x18], eax
test esi, esi
je 0x41c656
push eax
push 0xc0d
push 0x1388
push 0
push 1
call fcn.0041b3e0
add esp, 0x14
push edi
push str.Downloading__s
call fcn.004407e0
add esp, 8
test edi, edi
jne 0x41c65e
xor ecx, ecx
jmp 0x41c66c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c663
sub ecx, edx
lea eax, [esp + 0x54]
push eax
push 0
push ecx
push edi
call dword [0x53c1a8]
test eax, eax
je 0x41cc73
cmp dword [esp + 0x64], 0
je 0x41cc73
cmp dword [esp + 0x80], 0
je 0x41cc73
mov ecx, dword [esp + 0x28]
mov edx, 1
mov byte [esp + 0xf7], 0
call fcn.0041c000
mov dword [esp + 0x44], eax
test eax, eax
jne 0x41c6ca
call fcn.00440bb0
push eax
push str.Could_not_open_Internet_session:__s
jmp 0x41cc7e
push 0
push 0
push 3
push 0
push 0
push dword [esp + 0x80]
push dword [esp + 0x7c]
push eax
call dword [0x53c288]
mov ecx, eax
mov dword [esp + 0x40], ecx
test ecx, ecx
jne 0x41c712
call fcn.00440bb0
push eax
movzx eax, word [esp + 0x70]
push eax
push dword [esp + 0x6c]
push str.Could_not_connect_to_server__s:_d:__s
call fcn.004407e0
add esp, 0x10
jmp 0x41cc86
cmp dword [esp + 0x60], 4
mov edx, 0x488c600
push 0
mov eax, 0x408c600
cmove eax, edx
push eax
lea eax, [esp + 0x98]
push eax
push 0
push 0
push dword [esp + 0x94]
push 0x4d5be0
push ecx
call dword [0x53c1b0]
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x41c769
call fcn.00440bb0
push eax
push edi
push str.Could_not_open_URL__s:__s
call fcn.004407e0
add esp, 0xc
jmp 0x41cc86
push 0
push 0
push 0xffffffffffffffff
push str.Accept_Encoding:_gzip__deflate
push esi
call dword [0x53c29c]
test eax, eax
jne 0x41c78f
call fcn.00440bb0
push eax
push str.Unable_to_send_request:__s
jmp 0x41cc7e
push 0
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 4
push eax
push 0x5430cc
push 0x20000013
push esi
call dword [0x53c280]
cmp dword [0x5430cc], 0xc8
je 0x41c7fc
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xc0192efc
mov dword [0x53c25c], 0x2efc
call eax
mov eax, dword [0x5430cc]
mov edx, str.Unable_to_access_file
cmp eax, 0x194
mov ecx, str.File_not_found
push eax
cmovne ecx, edx
push ecx
push str._s:__d
call fcn.004407e0
add esp, 0xc
jmp 0x41cc86
push 0
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x20
push eax
lea eax, [esp + 0xa0]
push eax
push 5
push esi
call dword [0x53c280]
test eax, eax
jne 0x41c830
call fcn.00440bb0
push eax
push str.Unable_to_retrieve_file_length:__s
jmp 0x41cc7e
push 0xa
lea eax, [esp + 0x9c]
push 0
push eax
call fcn.004a0f1e
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x30], 0
mov esi, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], esi
je 0x41c90c
push esi
push ebx
xor edx, edx
xor ecx, ecx
call fcn.00440d90
push eax
push str.File_length:__s
call fcn.004407e0
add esp, 0x10
cmp dword [0x4fada0], 0
je 0x41c8a8
mov ecx, edi
call fcn.0041bea0
push dword [esp + 0x34]
xor edx, edx
lea esi, [esp + 0xfc]
push dword [esp + 0x2c]
xor ecx, ecx
mov edi, eax
mov ebx, str.__s___s
call fcn.00440d90
add esp, 8
jmp 0x41c8d1
push esi
push ebx
xor edx, edx
xor ecx, ecx
call fcn.00440d90
add esp, 8
mov dword [esp + 0x4c], eax
mov ecx, edi
lea esi, [esp + 0xf8]
mov ebx, 0x4d5c78
call fcn.0041bea0
mov edi, dword [esp + 0x4c]
push edi
push eax
push ebx
push 0x80
push esi
call fcn.00403820
add esp, 0x14
mov byte [esp + 0x177], 0
lea eax, [esp + 0xf8]
push eax
push 0xc0d
push 0x1388
push 0
push 0
call fcn.0041b3e0
mov ebx, dword [esp + 0x3c]
add esp, 0x14
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41c9ef
mov ebx, edi
cmp byte [ebx], 0
jne 0x41c92f
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x41c981
push 0
push 0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call ebx
mov edi, eax
cmp edi, 1
jle 0x41c97b
push 2
push edi
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x41c97b
push edi
push esi
push 0xffffffffffffffff
push dword [esp + 0x20]
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x41c97d
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
mov ebx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x41c9b3
push esi
call fcn.004998ec
add esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call eax
cmp dword [esp + 0x38], 0xffffffff
jne 0x41caa1
call fcn.00440bb0
push eax
push dword [esp + 0x1c]
push str.Unable_to_create_file__s:__s
call fcn.004407e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x53c25c], eax
xor esi, esi
jmp 0x41cc97
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x41ca6a
push str.No_buffer_pointer_provided_for_download
call fcn.004407e0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x53c25c], eax
mov eax, dword [esp + 0x24]
push eax
call dword [0x53c1b4]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41ca29
push eax
call dword [0x53c1b4]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x41ca38
push eax
call dword [0x53c1b4]
push dword [0x53c25c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x48], 0
je 0x41ccc7
mov eax, dword [esp + 0x1c]
mov edx, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x29f0]
xor ecx, esp
call fcn.00491940
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 1]
push 1
push eax
call fcn.0049570f
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x41caa9
push str.Could_not_allocate_buffer_for_download
call fcn.004407e0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x20]
xor esi, esi
mov dword [0x53c25c], eax
jmp 0x41cca6
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
test dword [0x4fa958], 0x80000000
jne 0x41cc3f
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea eax, [esp + 0x2c]
push eax
push 0x2800
lea eax, [esp + 0x200]
push eax
push dword [esp + 0x30]
call dword [0x53c258]
test eax, eax
je 0x41cbc4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41cbc4
cmp dword [esp + 0x30], 0
je 0x41cb1c
push 0
push dword [esp + 0x38]
mov edx, 0xca9
mov ecx, 0xfffffffe
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x2c]
call fcn.004510c0
mov eax, dword [esp + 0x40]
add esp, 0x14
test edi, edi
je 0x41cb62
push 0
lea ecx, [esp + 0x54]
push ecx
push eax
lea eax, [esp + 0x204]
push eax
push dword [esp + 0x48]
call esi
test eax, eax
je 0x41cba4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
je 0x41cb82
push eax
push ecx
push dword [esp + 0x20]
push str.Error_writing_file__s:_Only__d__d_bytes_written
call fcn.004407e0
mov esi, dword [esp + 0x20]
add esp, 0x10
jmp 0x41cc41
push eax
lea eax, [esp + 0x1fc]
push eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
add eax, dword [esp + 0x24]
push eax
call fcn.00493080
mov eax, dword [esp + 0x38]
add esp, 0xc
add dword [esp + 0x1c], eax
adc dword [esp + 0x10], 0
test dword [0x4fa958], 0x80000000
je 0x41cac0
mov esi, dword [esp + 0x10]
jmp 0x41cc41
call fcn.00440bb0
push eax
push dword [esp + 0x1c]
push str.Error_writing_file__s:__s
call fcn.004407e0
mov esi, dword [esp + 0x1c]
add esp, 0xc
jmp 0x41cc41
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
cmp ecx, ebx
jne 0x41cc1b
mov esi, dword [esp + 0x10]
cmp esi, eax
jne 0x41cc1b
cmp dword [esp + 0x30], 0
mov edi, 1
mov dword [0x5430cc], 0xc8
mov dword [esp + 0x48], edi
je 0x41cc43
push 0
push eax
push ebx
push eax
push ebx
mov edx, 0xca9
lea ecx, [edi - 3]
call fcn.004510c0
add esp, 0x14
push dword [esp + 0x18]
push str.Successfully_downloaded__s
call fcn.004407e0
add esp, 8
jmp 0x41cc43
push eax
push ebx
push dword [esp + 0x18]
push ecx
push str.Could_not_download_complete_file___read:__lld_bytes__expected:__lld_bytes
call fcn.004407e0
mov esi, dword [esp + 0x24]
add esp, 0x14
mov dword [0x4fa958], 0xc003001d
jmp 0x41cc41
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x38]
mov dword [0x53c25c], eax
cmp ebx, 0xffffffff
je 0x41cc65
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x41ca0f
mov ebx, dword [esp + 0x14]
jmp 0x41cc93
call fcn.00440bb0
push eax
push str.Unable_to_decode_URL:__s
call fcn.004407e0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov dword [0x53c25c], eax
test ebx, ebx
je 0x41cc9e
mov ecx, ebx
call fcn.00409dc0
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x41ccb6
push dword [ebx]
call fcn.004998ec
add esp, 4
mov dword [ebx], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41ca1a
jmp 0x41ca13
mov ecx, dword [esp + 0x29fc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
xor edx, edx
call fcn.00491940
mov esp, ebp
pop ebp
ret