Function at 0x41a800
Capabilities:
Create directory
Delete file
Initialize winhttp library
Prepare http request
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0a1b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x70], ecx
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x10]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x60], eax
cmp edi, ebx
jne 0x41a85c
push str.Downloading_file:_empty_URL
call fcn.00440290
mov ecx, eax
call fcn.004010d2
jmp 0x41ad2e
push 0x3c
lea ecx, [ebp - 0xe0]
push ebx
push ecx
call fcn.004693e0
or eax, 0xffffffff
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xe0], 0x3c
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xb0], eax
jb 0x41a897
mov eax, dword [esi]
jmp 0x41a899
mov eax, esi
lea edx, [ebp - 0xe0]
push edx
push ebx
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x41a8d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push str.Error_in_WinHttpCrackUrl
call fcn.00440290
mov ecx, eax
call fcn.00401695
jmp 0x41ad2e
push 0x4c1fe4
push esi
mov esi, dword [ebp - 0x60]
push str._from_
push esi
push str.Downloading_file_
call fcn.00440290
mov ecx, eax
call fcn.004029e1
cmp dword [esi + 0x14], 8
jb 0x41a8fd
mov edi, dword [esi]
mov dword [ebp - 0x64], edi
jmp 0x41a902
mov dword [ebp - 0x64], esi
mov edi, esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
jne 0x41a924
push esi
push str.Incorrect_path
call fcn.00440290
mov ecx, eax
call fcn.004012f3
jmp 0x41ad2e
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp edi, eax
je 0x41a946
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.004024be
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], ebx
je 0x41a992
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x41a95a
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41a992
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41a992
push esi
push str.Cannot_create_output_file_directory
call fcn.00440290
mov ecx, eax
call fcn.004014bf
lea ecx, [ebp - 0x30]
call fcn.00402130
jmp 0x41ad2e
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
jne 0x41a9cc
push esi
push str.Cannot_open_output_file
call fcn.00440290
mov ecx, eax
call fcn.00402cac
lea ecx, [ebp - 0x30]
call fcn.00402130
jmp 0x41ad2e
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edx, dword [ebp - 0xcc]
mov esi, eax
mov eax, dword [ebp - 0xd0]
push edx
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x8c], esi
call fcn.00401992
mov ax, word [ebp - 0xc8]
mov byte [ebp - 4], 1
cmp ax, bx
je 0x41aa0a
movzx ecx, ax
jmp 0x41aa26
mov ecx, dword [ebp - 0xd4]
sub ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 0xfffffe95
add ecx, 0x1bb
movzx ecx, cx
cmp esi, ebx
je 0x41aa7a
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x41aa36
lea eax, [ebp - 0x4c]
push ebx
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x54], edi
cmp edi, ebx
je 0x41aa7f
mov eax, dword [ebp - 0xb4]
xor edx, edx
cmp dword [ebp - 0xd4], 2
setne dl
dec edx
and edx, 0x800000
push edx
push ebx
push ebx
push ebx
push eax
push 0x4c1f58
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x74], eax
jmp 0x41aa84
mov dword [ebp - 0x54], ebx
mov edi, ebx
xor esi, esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x50], ebx
cmp esi, ebx
je 0x41ac70
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x50], eax
cmp eax, ebx
je 0x41ac70
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x50], eax
cmp eax, ebx
je 0x41ac70
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x70]
mov dl, byte [ecx + 0x133]
test dl, dl
je 0x41aaf3
push str.cancel_downloadingtrue
call fcn.00440290
mov ecx, eax
call fcn.00402478
jmp 0x41ac51
lea eax, [ebp - 0x58]
push eax
push esi
mov dword [ebp - 0x58], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x41ab31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x88]
push ecx
push str.Error_in_WinHttpQueryDataAvailable
mov dword [ebp - 0x88], eax
call fcn.00440290
mov ecx, eax
call fcn.0040276b
mov dword [ebp - 0x50], ebx
jmp 0x41ac51
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x41ac51
mov edx, dword [ebp - 0x80]
sub edx, dword [ebp - 0x84]
cmp edx, eax
jae 0x41ab5c
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.004025ae
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x5c]
push edx
push eax
mov eax, dword [ebp - 0x84]
push eax
push esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x5c], ebx
call edi
test eax, eax
jne 0x41abeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xa0]
push ecx
push str.Error_in_WinHttpReadData
mov dword [ebp - 0xa0], eax
call fcn.00440290
mov ecx, eax
call fcn.00401695
mov dword [ebp - 0x50], ebx
jmp 0x41ac51
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x41ac51
mov ecx, dword [ebp - 0x6c]
push ebx
lea edx, [ebp - 0x68]
push edx
push eax
mov eax, dword [ebp - 0x84]
push eax
push ecx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x9c], eax
cmp edx, dword [ebp - 0x5c]
jae 0x41aad0
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x9c]
push eax
push str.isOk
lea ecx, [ebp - 0x90]
push ecx
push str.Write_error_condition_detected__error:
call fcn.00440290
mov ecx, eax
call fcn.00401a64
mov eax, dword [ebp - 0x84]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41ac68
push eax
call fcn.00468992
add esp, 4
mov edi, dword [ebp - 0x54]
cmp dword [ebp - 0x50], ebx
jne 0x41ac94
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x94]
push edx
push str.Error_has_occurred
mov dword [ebp - 0x94], eax
call fcn.00440290
mov ecx, eax
call fcn.00401a1e
cmp esi, ebx
je 0x41aca3
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x41aca9
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp edi, ebx
je 0x41acb0
push edi
call esi
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
je 0x41acbd
push eax
call esi
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x70]
mov dl, byte [ecx + 0x133]
test dl, dl
jne 0x41aced
cmp dword [ebp - 0x50], ebx
je 0x41aced
lea ecx, [ebp - 0x4c]
call fcn.00402130
lea ecx, [ebp - 0x30]
call fcn.00402130
mov al, 1
jmp 0x41ad30
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 8
cmp dword [ebp - 0x38], esi
jb 0x41ad0d
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00468992
add esp, 4
xor edx, edx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
cmp dword [ebp - 0x1c], esi
jb 0x41ad2e
mov eax, dword [ebp - 0x30]
push eax
call fcn.00468992
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret 8