Function at 0x40bf50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f6c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x40bf8a
push 0x68
call fcn.00407cb0
add esp, 4
mov eax, dword [esi + 0xe4]
test eax, eax
jne 0x40bfa3
push 0
push str.CHttpClientT::_ProceedUploadContext:_m_hInternet_can_not_be_NULL.
call fcn.00407d90
add esp, 8
mov eax, dword [esi + 0xec]
test eax, eax
jne 0x40bfbc
push 0
push str.CHttpClientT::_ProceedUploadContext:_m_hConnection_can_not_be_NULL.
call fcn.00407d90
add esp, 8
mov eax, dword [esi + 0xf4]
test eax, eax
jne 0x40bfd5
push 0
push str.CHttpClientT::_ProceedUploadContext:_m_hRequest_can_not_be_NULL.
call fcn.00407d90
add esp, 8
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40bfeb
push 0
push str.CHttpClientT::_ProceedUploadContext:_nDesired_can_not_be_zero.
call fcn.00407d90
add esp, 8
mov eax, dword [esi + 0xa0]
lea edi, [esi + 0x9c]
test eax, eax
mov dword [ebp - 4], 0
jne 0x40c011
push 0
push str.CHttpPostStatT::ActualTotalByte:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov ebx, dword [edi + 8]
mov ecx, edi
call fcn.00409dc0
cmp ebx, eax
jne 0x40c048
mov eax, dword [esi + 0xf4]
push eax
call fcn.004087c0
add esp, 4
mov ecx, esi
call fcn.0040c820
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40c054
mov dword [ebp - 0x14], eax
jmp 0x40c05d
mov ecx, dword [str.____RYEOL_FB3B405B7EAE495aB0C0295C54D4E096_]
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x40c073
push 0
push str.CHttpPostStatT::TotalCount:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x40c0a1
push 0
push str._r_n__
mov ecx, esi
call fcn.0040b6e0
mov edx, dword [ebp - 0x14]
push 0
push edx
mov ecx, esi
call fcn.0040b6e0
push 0
push str.___r_n
jmp 0x40c3dc
mov eax, dword [edi + 4]
test eax, eax
jne 0x40c0cd
push 0
push str.CHttpPostStatT::CurrParamIsComplete:_The_post_context_is_not_active.
call fcn.00407d90
mov eax, dword [edi + 4]
add esp, 8
test eax, eax
jne 0x40c0cd
push 0
push str.CHttpPostStatT::CurrParamTotalByte:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov ebx, dword [edi + 0x30]
mov ecx, edi
call fcn.00409e00
cmp ebx, eax
jne 0x40c3f8
mov eax, dword [edi + 4]
test eax, eax
jne 0x40c0f5
push 0
push str.CHttpPostStatT::TotalCount:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0x18]
test eax, eax
jne 0x40c10e
push 0
push str.CHttpPostStatT::PostedCount:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
cmp ebx, dword [edi + 0x1c]
jne 0x40c13a
push 0
push 0x417cd4
mov ecx, esi
call fcn.0040b6e0
mov eax, dword [ebp - 0x14]
push 0
push eax
mov ecx, esi
call fcn.0040b6e0
push 0
push str.___r_n
jmp 0x40c3dc
mov eax, dword [edi + 4]
test eax, eax
jne 0x40c150
push 0
push str.CHttpPostStatT::PostedCount:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x1c]
test eax, eax
mov dword [ebp - 0x20], ecx
jne 0x40c16c
push 0
push str.CHttpPostStatT::PostedFileCount:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov eax, dword [esi + 0x3c]
mov ebx, dword [edi + 0x24]
xor edi, edi
mov eax, dword [eax]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp + 8], eax
cmp edi, dword [ebp - 0x20]
jae 0x40c192
lea ecx, [ebp + 8]
inc edi
call fcn.0040d2f0
mov eax, dword [ebp + 8]
jmp 0x40c17f
test byte [eax + 0x14], 1
je 0x40c251
mov edx, dword [esi + 0xd4]
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov eax, dword [edx + ebx*4]
cmp eax, 0xffffffff
je 0x40c1bd
push edi
push eax
call fcn.00408800
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push 0x417cd4
mov ecx, esi
call fcn.0040b6e0
mov eax, dword [ebp - 0x14]
push 0
push eax
mov ecx, esi
call fcn.0040b6e0
push 0
push 0x4165dc
mov ecx, esi
call fcn.0040b6e0
push 0
push str.Content_Disposition:_form_data__name_
mov ecx, esi
call fcn.0040b6e0
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x18]
push 0
mov edx, dword [ecx + 0xc]
mov ecx, esi
push edx
push eax
call fcn.0040b7a0
push 0
push str.___filename_
mov ecx, esi
call fcn.0040b6e0
mov ecx, dword [esi + 0x18]
push 0
push edi
push ecx
mov ecx, esi
call fcn.0040b7a0
push 0
push str.__r_nContent_Type:
mov ecx, esi
call fcn.0040b6e0
mov edx, dword [esi + 0xd8]
push 0
mov ecx, esi
mov eax, dword [edx + ebx*4]
push eax
call fcn.0040b6e0
push 0
push str._r_n_r_n
jmp 0x40c35f
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x40c2d4
cmp word [ecx], 0
je 0x40c2d4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40c27b
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0040b550
mov ebx, eax
mov dword [ebp - 0x20], 1
jmp 0x40c28c
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, esi
call fcn.0040b4b0
mov ebx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0xe0]
mov edi, dword [ebp - 0x20]
not ecx
dec ecx
test eax, eax
mov dword [ebp - 0x18], ecx
je 0x40c2c6
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x40c2c6
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + 0xdc], 0
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], edi
jmp 0x40c30d
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x40c2fc
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x40c2fc
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + 0xdc], 0
xor eax, eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], eax
mov dword [ebp - 0x18], eax
push 0
push 0x417cd4
mov ecx, esi
call fcn.0040b6e0
mov ecx, dword [ebp - 0x14]
push 0
push ecx
mov ecx, esi
call fcn.0040b6e0
push 0
push 0x4165dc
mov ecx, esi
call fcn.0040b6e0
push 0
push str.Content_Disposition:_form_data__name_
mov ecx, esi
call fcn.0040b6e0
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x18]
push 0
mov eax, dword [edx + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0040b7a0
push 0
push str.__r_n_r_n
mov ecx, esi
call fcn.0040b6e0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push edx
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
and ebx, 1
lea edi, [esi + 0x9c]
push ebx
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x20], eax
call fcn.0040a0e0
test ebx, ebx
je 0x40c3a1
mov eax, dword [edi + 0x24]
mov edx, dword [ebp - 0x1c]
inc eax
push edx
mov dword [edi + 0x24], eax
lea eax, [edi + 0x2c]
push eax
jmp 0x40c3a7
lea ecx, [edi + 0x2c]
push 0
push ecx
mov ecx, edi
call fcn.00409fe0
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp - 0x20]
inc eax
push edx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x28]
push eax
mov ecx, edi
call fcn.00409fe0
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], eax
test eax, eax
jne 0x40c3e3
push 0
push 0x4165dc
mov ecx, esi
call fcn.0040b6e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x40c414
push 0
push str.CHttpPostStatT::CurrParamRemainByte:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov eax, dword [ebp + 8]
sub edx, ecx
cmp eax, edx
jbe 0x40c444
mov eax, dword [edi + 4]
test eax, eax
jne 0x40c439
push 0
push str.CHttpPostStatT::CurrParamRemainByte:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
sub eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
xor ebx, ebx
test eax, eax
mov dword [ebp + 8], ebx
jne 0x40c45e
push ebx
push str.CHttpPostStatT::CurrParamIsFile:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40c595
mov eax, dword [esi + 0xfc]
test eax, eax
jne 0x40c495
push 0xe000
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [esi + 0xfc], eax
test eax, eax
jne 0x40c495
push 0x66
call fcn.00407cb0
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
jne 0x40c4ab
push 0
push str.CHttpPostStatT::PostedFileCount:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jae 0x40c61e
mov edi, eax
sub edi, ebx
cmp edi, 0xe000
jbe 0x40c4cd
mov edi, 0xe000
mov edx, dword [esi + 0xfc]
mov eax, dword [esi + 0xd4]
lea ecx, [ebp - 0x1c]
push 0
push ecx
mov ecx, dword [ebp - 0x20]
push edi
push edx
mov edx, dword [eax + ecx*4 - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c508
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25a
call fcn.00407dc0
add esp, 0xc
cmp edi, dword [ebp - 0x1c]
je 0x40c517
push 0x69
call fcn.00407cb0
add esp, 4
mov eax, dword [esi + 0xf4]
mov ebx, dword [esi + 0xfc]
test eax, eax
mov dword [ebp - 0x18], ebx
jne 0x40c539
push 0
push str.CHttpClientT::_WritePost:_m_hRequest_can_not_be_NULL.
call fcn.00407d90
add esp, 8
test ebx, ebx
je 0x40c586
test edi, edi
je 0x40c586
lea ebx, [esi + 0x9c]
push edi
mov ecx, ebx
call fcn.0040a100
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0xf4]
push edi
push eax
push ecx
call fcn.00408720
add esp, 0xc
mov ecx, ebx
push edi
call fcn.0040a100
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x14]
add ecx, edi
add edx, edi
mov dword [ebx + 0x34], ecx
push edi
mov ecx, ebx
mov dword [ebx + 0x14], edx
call fcn.0040a060
add dword [ebx + 0xc], edi
mov eax, dword [ebp + 8]
add eax, edi
mov dword [ebp + 8], eax
mov ebx, eax
jmp 0x40c4b1
mov eax, dword [edi + 4]
test eax, eax
jne 0x40c5ab
push 0
push str.CHttpPostStatT::CurrParamPostedByte:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov eax, dword [edi + 0x34]
mov ebx, dword [esi + 0xdc]
add ebx, eax
mov eax, dword [esi + 0xf4]
test eax, eax
jne 0x40c5cf
push 0
push str.CHttpClientT::_WritePost:_m_hRequest_can_not_be_NULL.
call fcn.00407d90
add esp, 8
test ebx, ebx
je 0x40c61e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c61e
mov edx, eax
mov ecx, edi
push edx
call fcn.0040a100
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0xf4]
push eax
push ebx
push ecx
call fcn.00408720
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, edi
push ebx
call fcn.0040a100
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x14]
add ecx, ebx
add edx, ebx
mov dword [edi + 0x34], ecx
push ebx
mov ecx, edi
mov dword [edi + 0x14], edx
call fcn.0040a060
add dword [edi + 0xc], ebx
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x40c637
push 0
push str.CHttpPostStatT::CurrParamRemainByte:_The_post_context_is_not_active.
call fcn.00407d90
add esp, 8
mov edx, dword [esi + 0xcc]
mov eax, dword [esi + 0xd0]
sub edx, eax
jmp 0x40c3d3