Function at 0x41d350
Capabilities:
Delete file
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4428a8
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4511b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], 0
mov ecx, dword [ebp - 0x14]
call fcn.0041d1f0
mov ecx, dword [ebp - 0x14]
call fcn.0041d170
movzx eax, al
test eax, eax
jne 0x41d3a3
xor al, al
jmp 0x41d769
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0041e300
movzx ecx, al
test ecx, ecx
jne 0x41d3df
xor al, al
jmp 0x41d769
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0041e260
movzx ecx, al
test ecx, ecx
jne 0x41d406
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x94], 4
xor al, al
jmp 0x41d769
lea ecx, [ebp - 0x44]
call fcn.0040d450
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0041e1c0
mov byte [ebp - 0x45], al
movzx eax, byte [ebp - 0x45]
test eax, eax
je 0x41d471
push 0
push 0x44733c
lea ecx, [ebp - 0x44]
call fcn.00411610
cmp eax, dword [0x4466b8]
je 0x41d471
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x94], 5
mov byte [ebp - 0xa5], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00406570
mov al, byte [ebp - 0xa5]
jmp 0x41d769
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x41d4c4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x94], 7
mov byte [ebp - 0xa4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00406570
mov al, byte [ebp - 0xa4]
jmp 0x41d769
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x41d53a
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0xa3], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00406570
mov al, byte [ebp - 0xa3]
jmp 0x41d769
mov dword [ebp - 0x50], 0
push 0x1000
call fcn.0042a5ca
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x41d58c
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0xa2], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00406570
mov al, byte [ebp - 0xa2]
jmp 0x41d769
mov eax, 1
test eax, eax
je 0x41d6ae
cmp dword [ebp - 0x1c], 0x1000
jbe 0x41d5bd
mov eax, dword [ebp - 0x54]
push eax
call fcn.0042a511
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042a5ca
add esp, 4
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x41d5df
jmp 0x41d6ae
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d60a
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x50]
je 0x41d60f
jmp 0x41d6ae
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x90], 0
je 0x41d686
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0
fild qword [ebp - 0xb0]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], 0
fild qword [ebp - 0xb8]
sub esp, 8
fstp qword [esp]
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x90]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x90]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x41d69d
jmp 0x41d6ae
cmp dword [ebp - 0x1c], 0
ja 0x41d6a9
mov byte [ebp - 0x15], 1
jmp 0x41d6ae
jmp 0x41d58c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x41d723
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
push 0x10
push 6
call fcn.0041acf0
add esp, 8
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 0
jmp 0x41d6e4
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x5c]
jge 0x41d70b
push 0xff
push 0
call fcn.0041acf0
add esp, 8
mov ecx, dword [ebp - 0x58]
mov byte [ecx], al
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
jmp 0x41d6db
push 0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x54]
push eax
call fcn.0042a511
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x41d74b
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [ebp - 0x15]
mov byte [ebp - 0xa1], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00406570
mov al, byte [ebp - 0xa1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a65e
mov esp, ebp
pop ebp
ret 0xc