Function at 0x4106d0
Capabilities:
Check for time delay via gettickcount
Get file size
Read and send data from client to server
Read file on windows
Send data

Disassembly:
push 0xffffffffffffffff
push 0x44a942
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463fcc]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x44]
test al, al
jne 0x410b5c
push str.Authorization:_Basic_YnVnX3JlcG9ydDohQCNRV0U
lea ecx, [esp + 0x30]
call fcn.00404ce0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi + 0x18]
push 0xa0000000
push ecx
push eax
push edx
mov dword [esp + 0xe4], 0
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov edx, dword [0x465aac]
mov eax, dword [edx + 0xc]
mov ecx, 0x465aac
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov edx, dword [0x465aac]
mov eax, dword [edx + 0xc]
mov ecx, 0x465aac
mov byte [esp + 0xd4], 1
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xd8], 2
call fcn.00404ce0
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 3
call fcn.004101a0
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], ecx
call dword [0x463fa8]
push eax
push edi
lea ecx, [esp + 0x50]
call fcn.0040fe30
mov edx, dword [esp + 0x48]
mov eax, dword [str.____79FC950525714d54928DECF95B7B4255]
push edx
push eax
push eax
lea eax, [esp + 0x2c]
push str.___s_r_nContent_Disposition:_form_data__name_action__r_n_r_nupfile_r_n___s_r_nContent_Disposition:_form_data__name_upfile___filename__s__r_nContent_Type:_application_x_zip_compressed_r_n_r_n
push eax
mov byte [esp + 0xe8], 4
call fcn.00410210
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
add esp, 0x14
cmp eax, ecx
mov byte [esp + 0xd4], 3
je 0x4107f7
push eax
call fcn.0042efe6
add esp, 4
mov edx, dword [str.____79FC950525714d54928DECF95B7B4255]
push edx
lea eax, [esp + 0x20]
push str._r_n___s___r_n
push eax
call fcn.00410210
mov ecx, dword [esi + 0x20]
add esp, 0xc
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [esp + 0x20]
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
mov dword [esp + 0x28], eax
mov eax, dword [eax]
add eax, ecx
add eax, edx
push eax
mov ecx, esi
mov dword [esp + 0x3c], edx
call fcn.0040fc80
mov edx, dword [0x465aac]
mov eax, dword [edx + 0xc]
mov ecx, 0x465aac
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x100000
or eax, ecx
mov byte [esp + 0xd4], 5
jge 0x410887
push 0x100000
lea ecx, [esp + 0x1c]
call fcn.00408f10
mov ebx, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], 0x1000
jbe 0x4108e2
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x3c], 0
mov eax, dword [ebp - 0xc]
lea edx, [esp + 0x3c]
push edx
sub eax, edi
push eax
push ebp
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor eax, eax
cmp dword [esp + 0x34], 1
push str.InternetWriteFile_failed._Error:__d.
sete al
push eax
call fcn.00422cd0
add edi, dword [esp + 0x48]
add esp, 0xc
cmp edi, dword [ebp - 0xc]
jb 0x410898
xor edi, edi
cmp dword [esp + 0x38], edi
jbe 0x410a11
mov edx, dword [esi + 0x20]
push 0
lea ecx, [esp + 0x38]
push ecx
push 0x100000
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor eax, eax
cmp ebp, 1
sete al
push str.ReadFile_failed._Error:__d.
push eax
call fcn.00422cd0
mov eax, dword [esp + 0x40]
add edi, eax
add esp, 0xc
xor ebp, ebp
test eax, eax
mov dword [esp + 0x30], edi
jbe 0x410a03
jmp 0x410940
mov cl, byte [esi + 0x44]
test cl, cl
jne 0x410b76
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x34]
sub eax, ebp
cmp ecx, eax
jb 0x410963
mov ecx, eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x44]
push edx
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ebp]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor eax, eax
cmp edi, 1
sete al
push str.InternetWriteFile_failed._Error:__d.
push eax
call fcn.00422cd0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x44]
sub eax, ebx
add ebp, ecx
cmp eax, 0x1f4
jae 0x4109d4
mov edx, dword [esp + 0x14]
add ecx, ecx
cmp ecx, edx
mov eax, ecx
ja 0x4109bd
mov eax, edx
cmp eax, 0x100000
jbe 0x4109ce
mov dword [esp + 0x14], 0x100000
jmp 0x4109f1
cmp ecx, edx
jbe 0x4109f1
jmp 0x4109ed
cmp eax, 0x3e8
jbe 0x4109f1
shr ecx, 1
cmp ecx, 0x200
mov dword [esp + 0x14], 0x200
jb 0x4109f1
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x34]
jb 0x410940
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
cmp edi, dword [esp + 0x38]
jb 0x4108ee
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
xor edi, edi
cmp dword [ecx], edi
jbe 0x410a6f
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x40], 0
mov eax, dword [edx]
lea edx, [esp + 0x40]
push edx
sub eax, edi
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp ebx, 1
sete cl
push eax
push str.InternetWriteFile_failed._Error:__d.
push ecx
call fcn.00422cd0
add edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
add esp, 0xc
cmp edi, dword [edx]
jb 0x410a1b
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x18]
push esi
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpEndRequestW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor eax, eax
cmp esi, 1
sete al
push str.HttpEndRequest_failed._Error:__d.
push eax
call fcn.00422cd0
add ebx, 0xfffffff0
add esp, 0xc
mov byte [esp + 0xd4], 3
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ac1
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xd4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ae9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xd4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xd4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0xd4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xd4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xd4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410bc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xd4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410bee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
jmp 0x410b14