Function at 0x407d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c0b0
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 0x407d4a
push 0x68
call fcn.00402f60
add esp, 4
mov eax, dword [esi + 0xe4]
test eax, eax
jne 0x407d63
push 0
push str.CHttpClientT::_ProceedUploadContext:_m_hInternet_can_not_be_NULL.
call fcn.00403040
add esp, 8
mov eax, dword [esi + 0xec]
test eax, eax
jne 0x407d7c
push 0
push str.CHttpClientT::_ProceedUploadContext:_m_hConnection_can_not_be_NULL.
call fcn.00403040
add esp, 8
mov eax, dword [esi + 0xf4]
test eax, eax
jne 0x407d95
push 0
push str.CHttpClientT::_ProceedUploadContext:_m_hRequest_can_not_be_NULL.
call fcn.00403040
add esp, 8
mov eax, dword [ebp + 8]
test eax, eax
jne 0x407dab
push 0
push str.CHttpClientT::_ProceedUploadContext:_nDesired_can_not_be_zero.
call fcn.00403040
add esp, 8
mov eax, dword [esi + 0xa0]
lea edi, [esi + 0x9c]
test eax, eax
mov dword [ebp - 4], 0
jne 0x407dd1
push 0
push str.CHttpPostStatT::ActualTotalByte:_The_post_context_is_not_active.
call fcn.00403040
add esp, 8
mov ebx, dword [edi + 8]
mov ecx, edi
call fcn.00405580
cmp ebx, eax
jne 0x407e08
mov eax, dword [esi + 0xf4]
push eax
call fcn.00403840
add esp, 4
mov ecx, esi
call fcn.004085d0
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 0x407e14
mov dword [ebp - 0x14], eax
jmp 0x407e1d
mov ecx, dword [str.____RYEOL_FB3B405B7EAE495aB0C0295C54D4E096_]
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x407e33
push 0
push str.CHttpPostStatT::TotalCount:_The_post_context_is_not_active.
call fcn.00403040
add esp, 8
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x407e61
push 0
push str._r_n__
mov ecx, esi
call fcn.00406b00
mov edx, dword [ebp - 0x14]
push 0
push edx
mov ecx, esi
call fcn.00406b00
push 0
push str.___r_n
jmp 0x408199
mov eax, dword [edi + 4]
test eax, eax
jne 0x407e8d
push 0
push str.CHttpPostStatT::CurrParamIsComplete:_The_post_context_is_not_active.
call fcn.00403040
mov eax, dword [edi + 4]
add esp, 8
test eax, eax
jne 0x407e8d
push 0
push str.CHttpPostStatT::CurrParamTotalByte:_The_post_context_is_not_active.
call fcn.00403040
add esp, 8
mov ebx, dword [edi + 0x30]
mov ecx, edi
call fcn.004055c0
cmp ebx, eax
jne 0x4081b5
mov eax, dword [edi + 4]
test eax, eax
jne 0x407eb5
push 0
push str.CHttpPostStatT::TotalCount:_The_post_context_is_not_active.
call fcn.00403040
add esp, 8
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0x18]
test eax, eax
jne 0x407ece
push 0
push str.CHttpPostStatT::PostedCount:_The_post_context_is_not_active.
call fcn.00403040
add esp, 8
cmp ebx, dword [edi + 0x1c]
jne 0x407efa
push 0
push 0x43979c
mov ecx, esi
call fcn.00406b00
mov eax, dword [ebp - 0x14]
push 0
push eax
mov ecx, esi
call fcn.00406b00
push 0
push str.___r_n
jmp 0x408199
mov eax, dword [edi + 4]
test eax, eax
jne 0x407f10
push 0
push str.CHttpPostStatT::PostedCount:_The_post_context_is_not_active.
call fcn.00403040
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x1c]
test eax, eax
mov dword [ebp - 0x20], ecx
jne 0x407f2c
push 0
push str.CHttpPostStatT::PostedFileCount:_The_post_context_is_not_active.
call fcn.00403040
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 0x407f52
lea ecx, [ebp + 8]
inc edi
call fcn.004090b0
mov eax, dword [ebp + 8]
jmp 0x407f3f
test byte [eax + 0x14], 1
je 0x408011
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 0x407f7d
push edi
push eax
call fcn.004038c0
add esp, 8
mov dword [ebp - 0x18], eax
push 0
push 0x43979c
mov ecx, esi
call fcn.00406b00
mov eax, dword [ebp - 0x14]
push 0
push eax
mov ecx, esi
call fcn.00406b00
push 0
push 0x437100
mov ecx, esi
call fcn.00406b00
push 0
push str.Content_Disposition:_form_data__name_
mov ecx, esi
call fcn.00406b00
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.00406bc0
push 0
push str.___filename_
mov ecx, esi
call fcn.00406b00
mov ecx, dword [esi + 0x18]
push 0
push edi
push ecx
mov ecx, esi
call fcn.00406bc0
push 0
push str.__r_nContent_Type:
mov ecx, esi
call fcn.00406b00
mov edx, dword [esi + 0xd8]
push 0
mov ecx, esi
mov eax, dword [edx + ebx*4]
push eax
call fcn.00406b00
push 0
push 0x439748
jmp 0x40811c
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x408092
cmp byte [ecx], 0
je 0x408092
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40803a
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00406920
mov ebx, eax
mov dword [ebp - 0x20], 1
jmp 0x40804b
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, esi
call fcn.00406900
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 0x408084
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x408084
push eax
call fcn.004119fb
add esp, 4
mov dword [esi + 0xdc], 0
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], edi
jmp 0x4080ca
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4080b9
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x4080b9
push eax
call fcn.004119fb
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 0x43979c
mov ecx, esi
call fcn.00406b00
mov ecx, dword [ebp - 0x14]
push 0
push ecx
mov ecx, esi
call fcn.00406b00
push 0
push 0x437100
mov ecx, esi
call fcn.00406b00
push 0
push str.Content_Disposition:_form_data__name_
mov ecx, esi
call fcn.00406b00
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.00406bc0
push 0
push str.__r_n_r_n
mov ecx, esi
call fcn.00406b00
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.00405970
test ebx, ebx
je 0x40815e
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 0x408164
lea ecx, [edi + 0x2c]
push 0
push ecx
mov ecx, edi
call fcn.00405830
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.00405830
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], eax
test eax, eax
jne 0x4081a0
push 0
push 0x437100
mov ecx, esi
call fcn.00406b00
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 0x4081d1
push 0
push str.CHttpPostStatT::CurrParamRemainByte:_The_post_context_is_not_active.
call fcn.00403040
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 0x408201
mov eax, dword [edi + 4]
test eax, eax
jne 0x4081f6
push 0
push str.CHttpPostStatT::CurrParamRemainByte:_The_post_context_is_not_active.
call fcn.00403040
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 0x40821b
push ebx
push str.CHttpPostStatT::CurrParamIsFile:_The_post_context_is_not_active.
call fcn.00403040
add esp, 8
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x408351
mov eax, dword [esi + 0xfc]
test eax, eax
jne 0x408251
push 0xe000
call fcn.00411ae4
add esp, 4
mov dword [esi + 0xfc], eax
test eax, eax
jne 0x408251
push 0x66
call fcn.00402f60
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
jne 0x408267
push 0
push str.CHttpPostStatT::PostedFileCount:_The_post_context_is_not_active.
call fcn.00403040
add esp, 8
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jae 0x4083da
mov edi, eax
sub edi, ebx
cmp edi, 0xe000
jbe 0x408289
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 0x4082c4
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25a
call fcn.00403070
add esp, 0xc
cmp edi, dword [ebp - 0x1c]
je 0x4082d3
push 0x69
call fcn.00402f60
add esp, 4
mov eax, dword [esi + 0xf4]
mov ebx, dword [esi + 0xfc]
test eax, eax
mov dword [ebp - 0x18], ebx
jne 0x4082f5
push 0
push str.CHttpClientT::_WritePost:_m_hRequest_can_not_be_NULL.
call fcn.00403040
add esp, 8
test ebx, ebx
je 0x408342
test edi, edi
je 0x408342
lea ebx, [esi + 0x9c]
push edi
mov ecx, ebx
call fcn.00405990
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0xf4]
push edi
push eax
push ecx
call fcn.004037b0
add esp, 0xc
mov ecx, ebx
push edi
call fcn.00405990
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.004058f0
add dword [ebx + 0xc], edi
mov eax, dword [ebp + 8]
add eax, edi
mov dword [ebp + 8], eax
mov ebx, eax
jmp 0x40826d
mov eax, dword [edi + 4]
test eax, eax
jne 0x408367
push 0
push str.CHttpPostStatT::CurrParamPostedByte:_The_post_context_is_not_active.
call fcn.00403040
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 0x40838b
push 0
push str.CHttpClientT::_WritePost:_m_hRequest_can_not_be_NULL.
call fcn.00403040
add esp, 8
test ebx, ebx
je 0x4083da
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4083da
mov edx, eax
mov ecx, edi
push edx
call fcn.00405990
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0xf4]
push eax
push ebx
push ecx
call fcn.004037b0
mov ebx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, edi
push ebx
call fcn.00405990
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.004058f0
add dword [edi + 0xc], ebx
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x4083f3
push 0
push str.CHttpPostStatT::CurrParamRemainByte:_The_post_context_is_not_active.
call fcn.00403040
add esp, 8
mov edx, dword [esi + 0xcc]
mov eax, dword [esi + 0xd0]
sub edx, eax
jmp 0x408190