Function at 0x40fa80
Capabilities:
Send data

Disassembly:
push 0xffffffffffffffff
push 0x428840
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43bafc]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x44]
test al, al
jne 0x40fe05
push str.Authorization:_Basic_YnVnX3JlcG9ydDohQCNRV0U
lea ecx, [esp + 0x30]
call fcn.0040ae70
xor edi, edi
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi + 0x18]
push 0xa0000000
push ecx
push eax
push edx
call dword [0x42d500]
lea ecx, [esp + 0x1c]
call fcn.00404600
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x18]
call fcn.00404600
mov byte [esp + 0x50], 2
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.0040af30
mov byte [esp + 0x50], 3
lea ecx, [esp + 0x24]
call fcn.0040f580
mov ecx, dword [esp + 0x24]
mov eax, dword [str.____79FC950525714d54928DECF95B7B4255]
push ecx
push eax
push eax
lea edx, [esp + 0x28]
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 edx
call fcn.0040ad70
mov eax, dword [str.____79FC950525714d54928DECF95B7B4255]
push eax
lea ecx, [esp + 0x30]
push str._r_n___s___r_n
push ecx
call fcn.0040ad70
mov edx, dword [esi + 0x20]
add esp, 0x20
push edi
push edx
call dword [0x42d07c]
mov edx, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov eax, dword [edx - 0xc]
add eax, ecx
add eax, ebp
push eax
mov ecx, esi
mov dword [esp + 0x3c], ebp
call fcn.0040f250
lea ecx, [esp + 0x20]
call fcn.00404600
mov byte [esp + 0x50], 4
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x100000
or eax, ecx
jge 0x40fbad
push 0x100000
lea ecx, [esp + 0x24]
call fcn.004046c0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], 0x1000
jbe 0x40fc12
mov edx, dword [esi + 0x18]
mov dword [esp + 0x30], 0
mov eax, dword [ecx - 0xc]
lea ebx, [esp + 0x30]
push ebx
sub eax, edi
push eax
push ecx
push edx
call dword [0x42d4f8]
mov ebp, eax
call dword [0x42d194]
push eax
xor eax, eax
cmp ebp, 1
sete al
push str.InternetWriteFile_failed._Error:__d.
push eax
call fcn.0041fd50
add edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp edi, dword [ecx - 0xc]
jb 0x40fbc4
mov ebp, dword [esp + 0x38]
xor ebx, ebx
test ebp, ebp
jbe 0x40fd39
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x20]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x100000
push edx
push eax
call dword [0x42d078]
mov edi, eax
call dword [0x42d194]
xor ecx, ecx
cmp edi, 1
sete cl
push eax
push str.ReadFile_failed._Error:__d.
push ecx
call fcn.0041fd50
mov eax, dword [esp + 0x34]
add ebx, eax
add esp, 0xc
xor ebp, ebp
test eax, eax
mov dword [esp + 0x44], ebx
jbe 0x40fd2f
lea ebx, [ebx]
mov dl, byte [esi + 0x44]
test dl, dl
jne 0x40fe19
call dword [0x42d094]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x28]
sub eax, ebp
cmp ecx, eax
jb 0x40fc93
mov ecx, eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + ebp]
push edx
push eax
call dword [0x42d4f8]
mov edi, eax
call dword [0x42d194]
push eax
xor eax, eax
cmp edi, 1
sete al
push str.InternetWriteFile_failed._Error:__d.
push eax
call fcn.0041fd50
add esp, 0xc
call dword [0x42d094]
mov ecx, dword [esp + 0x40]
sub eax, ebx
add ebp, ecx
cmp eax, 0x1f4
jae 0x40fd04
mov edx, dword [esp + 0x14]
add ecx, ecx
cmp ecx, edx
mov eax, ecx
ja 0x40fced
mov eax, edx
cmp eax, 0x100000
jbe 0x40fcfe
mov dword [esp + 0x14], 0x100000
jmp 0x40fd21
cmp ecx, edx
jbe 0x40fd21
jmp 0x40fd1d
cmp eax, 0x3e8
jbe 0x40fd21
shr ecx, 1
cmp ecx, 0x200
mov dword [esp + 0x14], 0x200
jb 0x40fd21
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x28]
jb 0x40fc70
mov ebx, dword [esp + 0x44]
cmp ebx, dword [esp + 0x38]
jb 0x40fc1c
mov ecx, dword [esp + 0x18]
xor edi, edi
cmp dword [ecx - 0xc], edi
jbe 0x40fd8e
mov edx, dword [esi + 0x18]
mov dword [esp + 0x3c], 0
mov eax, dword [ecx - 0xc]
lea ebx, [esp + 0x3c]
push ebx
sub eax, edi
push eax
push ecx
push edx
call dword [0x42d4f8]
mov ebx, eax
call dword [0x42d194]
xor ecx, ecx
cmp ebx, 1
sete cl
push eax
push str.InternetWriteFile_failed._Error:__d.
push ecx
call fcn.0041fd50
add edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp edi, dword [ecx - 0xc]
jb 0x40fd44
mov eax, dword [esi + 0x18]
push esi
push 0
push 0
push eax
call dword [0x42d510]
mov esi, eax
call dword [0x42d194]
xor edx, edx
cmp esi, 1
sete dl
push eax
push str.HttpEndRequest_failed._Error:__d.
push edx
call fcn.0041fd50
add esp, 0xc
mov byte [esp + 0x50], 3
lea ecx, [esp + 0x20]
call fcn.00404660
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x24]
call fcn.00404660
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x18]
call fcn.00404660
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x1c]
call fcn.00404660
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00404660
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fead
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret