Function at 0x100022d0
Capabilities:
Copy file
Delete file
Get common file path
Initialize winhttp library
Prepare http request
Receive http response
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1680
call sym.__alloca
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x68c]
push esi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
test eax, eax
je 0x100026a4
lea eax, [ebp - 0x27c]
push eax
push 0
push 0x1000862e
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x100026c7
mov ebx, dword [ebp + 8]
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
movaps xmm0, xmmword [0x10008500]
movups xmmword [ebx + 0x10], xmm0
mov dword [ebx + 0x20], 0
mov dword [ebp - 0x2c], esi
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test byte [0x1001404c], 8
je 0x1000239c
mov ecx, dword [ebx + 8]
call sym._debugstr_w
mov esi, eax
lea ecx, [ebp - 0x27c]
call sym._debugstr_w
mov edi, eax
mov ecx, dword [ebx + 0xc]
call sym._debugstr_w
sub esp, 0x1c
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Transferring:__s_____s_____s_n
mov dword [esp + 8], str.processFile
mov dword [esp], 3
call sym._wine_dbg_log_3
add esp, 0x1c
movaps xmm0, xmmword [0x10008510]
movups xmmword [ebp - 0x74], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
lea eax, [ebp - 0x484]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x104
mov word [ebp - 0x5c], 0
movaps xmm0, xmmword [0x10008520]
movups xmmword [ebp - 0x48], xmm0
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push dword [ebx + 8]
call dword [sym.imp.winhttp.dll_WinHttpCrackUrl]
test eax, eax
je 0x10002713
mov dword [ebp - 0x18], ebx
mov esi, dword [ebx + 0x238]
cmp dword [ebp - 0x68], 2
sete byte [ebp - 0x10]
push 1
push 0
push esi
call sym._transitionJobState
sub esp, 8
xorps xmm0, xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 0x10000000
call dword [sym.imp.winhttp.dll_WinHttpOpen]
test eax, eax
je 0x10002870
mov edi, eax
push 0
push 0x17e0000
push dbg._progress_callback_http@20
push eax
call dword [sym.imp.winhttp.dll_WinHttpSetStatusCallback]
lea eax, [ebp - 0x18]
push 4
push eax
push 0x2d
push edi
call dword [sym.imp.winhttp.dll_WinHttpSetOption]
test eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
je 0x100027bd
movzx eax, word [ebp - 0x5c]
push 0
push eax
push dword [ebp - 0x64]
push edi
call dword [sym.imp.winhttp.dll_WinHttpConnect]
test eax, eax
je 0x100027bd
xor ecx, ecx
movzx edx, byte [ebp - 0x10]
mov cl, dl
shl ecx, 0x17
push ecx
push 0
push 0
push 0
push dword [ebp - 0x48]
push 0
mov dword [ebp - 0x14], eax
push eax
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
test eax, eax
je 0x1000282a
mov edx, eax
mov eax, dword [esi + 0x88]
test eax, eax
mov dword [ebp - 0x10], edx
je 0x100024c5
push 0
push dword [esi + 0x8c]
push eax
push 1
push 0
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0x98]
test eax, eax
je 0x100024ee
push 0
push dword [esi + 0x9c]
push eax
push 2
push 0
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x10002517
push 0
push dword [esi + 0xac]
push eax
push 4
push 0
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x10002540
push 0
push dword [esi + 0xbc]
push eax
push 8
push 0
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x10002569
push 0
push dword [esi + 0xcc]
push eax
push 0x10
push 0
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x10002592
push 0
push dword [esi + 0xdc]
push eax
push 1
push 1
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x100025bb
push 0
push dword [esi + 0xec]
push eax
push 2
push 1
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x100025e4
push 0
push dword [esi + 0xfc]
push eax
push 4
push 1
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0x108]
test eax, eax
je 0x1000260d
push 0
push dword [esi + 0x10c]
push eax
push 8
push 1
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0x118]
test eax, eax
je 0x10002636
push 0
push dword [esi + 0x11c]
push eax
push 0x10
push 1
push edx
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x1000282c
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0x18]
sub esp, 0x1c
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x10008530]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
test eax, eax
je 0x10002959
movsd xmm0, qword [esi + 0x12c]
movsd qword [ebp - 0x38], xmm0
lea eax, [ebp - 0x38]
push 0xffffffffffffffff
push 0
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
test eax, eax
je 0x10002931
cmp eax, 1
jne 0x10002912
push 8
push 2
push esi
call sym._transitionJobState
add esp, 0xc
jmp 0x10002959
test byte [0x1001404c], 2
je 0x100026ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_create_temp_file_name:__ld_n
jmp 0x100026e8
test byte [0x1001404c], 2
je 0x100026ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_create_temp_file:__ld_n
mov dword [esp + 8], str.processFile
mov dword [esp], 1
call sym._wine_dbg_log_3
add esp, 0x14
push 5
push 0
push edi
call sym._transitionJobState
add esp, 0xc
xor eax, eax
jmp 0x100028f5
test byte [0x1001404c], 8
je 0x1000273e
sub esp, 0x10
mov dword [esp + 0xc], str.WinHttpCrackUrl_failed__trying_local_file_copy_n
mov dword [esp + 8], str.processFile
mov dword [esp], 3
call sym._wine_dbg_log_3
add esp, 0x10
mov esi, dword [ebx + 0x238]
push 2
push 0
push esi
call sym._transitionJobState
add esp, 0xc
mov eax, dword [ebx + 8]
mov ecx, 0xfffffffe
nop dword [eax]
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x10002760
cmp ecx, 0xf
jl 0x10002790
push 7
push str.file:__
push eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
add esp, 0xc
xor ecx, ecx
test eax, eax
mov eax, 0xe
cmovne eax, ecx
add eax, dword [ebx + 8]
push 0
push 0
push ebx
push dbg._progress_callback_local@52
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x100027c3
push dword [esi + 0x134]
call dword [sym.imp.kernel32.dll_SetEvent]
jmp 0x1000289b
xor edx, edx
xor edi, edi
jmp 0x1000282f
test byte [0x1001404c], 4
je 0x100027fb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Local_file_copy_failed:_error__lu_n
mov dword [esp + 8], str.transfer_file_local
mov dword [esp], 2
call sym._wine_dbg_log_3
add esp, 0x14
push 4
push 2
push esi
call sym._transitionJobState
add esp, 0xc
push dword [esi + 0x134]
call dword [sym.imp.kernel32.dll_SetEvent]
test byte [0x1001404c], 4
je 0x1000289b
sub esp, 0x10
mov dword [esp + 0xc], str.local_transfer_failed_n
jmp 0x10002884
xor edx, edx
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
push edx
call esi
push edi
call esi
push dword [ebp - 0x20]
call esi
push 4
push 1
mov esi, dword [ebp - 0x24]
push esi
call sym._transitionJobState
add esp, 0xc
test eax, eax
jne 0x10002861
push 4
push 2
push esi
call sym._transitionJobState
add esp, 0xc
push dword [esi + 0x134]
call dword [sym.imp.kernel32.dll_SetEvent]
mov edi, dword [ebp + 0xc]
test byte [0x1001404c], 4
je 0x1000289b
sub esp, 0x10
mov dword [esp + 0xc], str.HTTP_transfer_failed_n
mov dword [esp + 8], str.processFile
mov dword [esp], 2
call sym._wine_dbg_log_3
add esp, 0x10
push 0
push 1
push edi
call sym._transitionJobState
add esp, 0xc
test eax, eax
jne 0x100028bd
push 0
push 2
push edi
call sym._transitionJobState
add esp, 0xc
test eax, eax
je 0x10002900
xor eax, eax
nop
movzx ecx, word [ebp + eax - 0x27c]
mov word [ebx + eax + 0x28], cx
add eax, 2
test cx, cx
jne 0x100028c0
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 0x20], 1
inc dword [edi + 0x44]
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x1680
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1000270c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x1c], eax
push 4
push 2
push esi
call sym._transitionJobState
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x10002959
cmp dword [esi + 0x124], 0
mov edx, dword [ebp - 0x10]
js 0x1000282c
push 0
push edx
call dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10002959
mov ecx, esi
call sym._wait_for_completion
test eax, eax
je 0x10002964
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jmp 0x1000282f
cmp dword [esi + 0x124], 0
js 0x10002959
push 2
push 1
push esi
call sym._transitionJobState
sub esp, 0x10
movaps xmm0, xmmword [0x10008540]
movups xmmword [esp + 4], xmm0
lea eax, [ebp - 0x27c]
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x10002959
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x23c], 0
lea eax, [ebp - 0x168c]
push 0
push 0x1000
push eax
push dword [ebp - 0x10]
call dword [sym.imp.winhttp.dll_WinHttpReadData]
test eax, eax
mov esi, dword [ebp - 0x24]
je 0x10002a76
lea eax, [esi + 0x58]
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x28]
mov ecx, esi
call sym._wait_for_completion
test eax, eax
jne 0x10002a76
cmp dword [esi + 0x124], 0
js 0x10002a76
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x23c]
test eax, eax
je 0x10002a84
push 0
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [ebp - 0x168c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x10002a76
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x23c]
add dword [eax + 0x18], ecx
adc dword [eax + 0x1c], 0
add dword [esi + 0x38], ecx
adc dword [esi + 0x3c], 0
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x23c], 0
push 0
push 0x1000
lea eax, [ebp - 0x168c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.winhttp.dll_WinHttpReadData]
test eax, eax
jne 0x100029e5
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10002959
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x20]
call edi
push dword [esi + 0x134]
call dword [sym.imp.kernel32.dll_SetEvent]
mov edi, dword [ebp + 0xc]
jmp 0x1000289b