Function at 0x40efc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5663b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x40f000
lea edi, [eax + 0x68]
call fcn.0040b820
cmp dword [esi + 0xe4], 0
jne 0x40f013
mov esi, str.CHttpClientT::_ProceedUploadContext:_m_hInternet_can_not_be_NULL.
call fcn.0040b8c0
cmp dword [esi + 0xec], 0
jne 0x40f026
mov esi, str.CHttpClientT::_ProceedUploadContext:_m_hConnection_can_not_be_NULL.
call fcn.0040b8c0
cmp dword [esi + 0xf4], 0
jne 0x40f039
mov esi, str.CHttpClientT::_ProceedUploadContext:_m_hRequest_can_not_be_NULL.
call fcn.0040b8c0
lea ebx, [esi + 0x9c]
mov dword [ebp - 4], 0
cmp dword [ebx + 4], 0
jne 0x40f056
mov esi, str.CHttpPostStatT::ActualTotalByte:_The_post_context_is_not_active.
call fcn.0040b8c0
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp eax, dword [ebx + 0xc]
sete cl
mov eax, ecx
test eax, eax
je 0x40f08c
mov eax, dword [esi + 0xf4]
call fcn.0040c140
push esi
call fcn.0040f4a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40f09d
mov dword [ebp - 0x14], str.____RYEOL_FB3B405B7EAE495aB0C0295C54D4E096_
mov ecx, dword [ebx + 0x18]
test ecx, ecx
jne 0x40f0dc
mov edx, str._r_n__
mov eax, esi
call fcn.0040e670
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040e670
mov edx, str.___r_n
mov eax, esi
call fcn.0040e670
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x30]
xor edx, edx
cmp eax, dword [ebx + 0x34]
sete dl
mov eax, edx
test eax, eax
je 0x40f2b2
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x24], eax
cmp ecx, eax
jne 0x40f102
mov edx, 0x59b984
jmp 0x40f0a9
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax]
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
cmp edi, dword [ebp - 0x24]
jae 0x40f12b
lea eax, [ebp - 0x18]
inc edi
call fcn.0040ff90
mov ebx, dword [ebp - 0x18]
jmp 0x40f118
test byte [ebx + 0x14], 1
je 0x40f1db
mov ecx, dword [esi + 0xd4]
mov edx, dword [ebp - 0x20]
cmp dword [ecx + edx*4], 0xffffffff
mov edi, dword [ebx + 0x10]
lea eax, [ecx + edx*4]
je 0x40f156
mov eax, dword [eax]
mov ecx, edi
call fcn.0040c180
mov dword [ebp - 0x1c], eax
mov edx, 0x59b984
mov eax, esi
call fcn.0040e670
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040e670
mov edx, 0x5991b8
mov eax, esi
call fcn.0040e670
mov edx, str.Content_Disposition:_form_data__name_
mov eax, esi
call fcn.0040e670
mov eax, dword [esi + 0x18]
mov ecx, dword [ebx + 0xc]
push eax
mov edx, esi
call fcn.0040e6b0
mov edx, str.___filename_
mov eax, esi
call fcn.0040e670
mov ecx, dword [esi + 0x18]
push ecx
mov ecx, edi
mov edx, esi
call fcn.0040e6b0
mov edx, str.__r_nContent_Type:
mov eax, esi
call fcn.0040e670
mov edx, dword [esi + 0xd8]
mov eax, dword [ebp - 0x20]
mov edx, dword [edx + eax*4]
mov eax, esi
call fcn.0040e670
mov edx, str._r_n_r_n
mov eax, esi
call fcn.0040e670
jmp 0x40f283
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x40f223
cmp word [eax], 0
je 0x40f223
cmp dword [esi + 0x18], 0
je 0x40f1fc
mov ecx, eax
call fcn.0040e4d0
mov edi, 1
jmp 0x40f20b
lea ecx, [ebp - 0x24]
push ecx
push esi
mov ecx, eax
call fcn.0040e3c0
mov edi, dword [ebp - 0x24]
mov ebx, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f210
sub eax, edx
mov dword [ebp - 0x1c], eax
call fcn.0040e5b0
jmp 0x40f22f
xor edi, edi
xor ebx, ebx
call fcn.0040e5b0
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 8]
mov edx, 0x59b984
mov eax, esi
call fcn.0040e670
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040e670
mov edx, 0x5991b8
mov eax, esi
call fcn.0040e670
mov edx, str.Content_Disposition:_form_data__name_
mov eax, esi
call fcn.0040e670
mov edx, dword [esi + 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push edx
mov edx, esi
call fcn.0040e6b0
mov edx, str.__r_n_r_n
mov eax, esi
call fcn.0040e670
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0xc]
push edi
mov edi, dword [ebp - 0x1c]
push edi
add esi, 0x9c
and eax, 1
push ecx
call fcn.0040d190
test edi, edi
jne 0x40f0c6
mov eax, dword [ebp + 8]
mov edx, 0x5991b8
jmp 0x40f0c1
mov ecx, ebx
mov dword [ebp - 0x14], 0x400
call fcn.0040cee0
cmp eax, 0x400
jae 0x40f2d1
mov ecx, ebx
call fcn.0040cee0
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 4], edi
jne 0x40f2e5
mov esi, str.CHttpPostStatT::CurrParamIsFile:_The_post_context_is_not_active.
call fcn.0040b8c0
xor eax, eax
cmp dword [ebx + 0x2c], eax
setne al
test eax, eax
je 0x40f3ff
cmp dword [esi + 0xfc], edi
jne 0x40f31c
push 0xe000
call fcn.00533ec0
add esp, 4
mov dword [esi + 0xfc], eax
test eax, eax
jne 0x40f31c
lea edi, [eax + 0x66]
call fcn.0040b820
cmp dword [ebx + 4], edi
jne 0x40f32b
mov esi, str.CHttpPostStatT::PostedFileCount:_The_post_context_is_not_active.
call fcn.0040b8c0
mov edx, dword [ebx + 0x24]
mov dword [ebp - 0x28], edx
cmp edi, dword [ebp - 0x14]
jae 0x40f459
mov eax, dword [ebp - 0x14]
sub eax, edi
mov edi, 0xe000
cmp eax, 0xe000
ja 0x40f34d
mov edi, eax
mov ecx, dword [esi + 0xfc]
mov edx, dword [esi + 0xd4]
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push edi
push ecx
mov ecx, dword [edx + eax*4 - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f386
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor ecx, ecx
mov esi, 0x25a
call fcn.0040b910
cmp edi, dword [ebp - 0x24]
je 0x40f395
mov edi, 0x69
call fcn.0040b820
cmp dword [esi + 0xf4], 0
mov eax, dword [esi + 0xfc]
mov dword [ebp - 0x20], eax
jne 0x40f3b1
mov esi, str.CHttpClientT::_WritePost:_m_hRequest_can_not_be_NULL.
call fcn.0040b8c0
test eax, eax
je 0x40f3f4
test edi, edi
je 0x40f3f4
lea ebx, [esi + 0x9c]
mov ecx, edi
mov edx, ebx
call fcn.0040d1f0
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 0xf4]
push edx
push eax
call fcn.0040c0b0
add esp, 8
mov ecx, edi
mov edx, ebx
call fcn.0040d1f0
add dword [ebx + 0x14], edi
add dword [ebx + 0x34], edi
push edi
push ebx
call fcn.0040d080
add dword [ebx + 0xc], edi
add dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x1c]
jmp 0x40f331
mov edi, dword [esi + 0xdc]
add edi, dword [ebx + 0x34]
cmp dword [esi + 0xf4], 0
jne 0x40f41b
mov esi, str.CHttpClientT::_WritePost:_m_hRequest_can_not_be_NULL.
call fcn.0040b8c0
test edi, edi
je 0x40f459
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40f459
mov edx, ebx
call fcn.0040d1f0
mov ecx, dword [esi + 0xf4]
push edi
mov edi, dword [ebp - 0x14]
push ecx
call fcn.0040c0b0
add esp, 8
mov ecx, edi
mov edx, ebx
call fcn.0040d1f0
add dword [ebx + 0x14], edi
add dword [ebx + 0x34], edi
push edi
push ebx
call fcn.0040d080
add dword [ebx + 0xc], edi
lea ecx, [esi + 0x9c]
call fcn.0040cee0
test eax, eax
jne 0x40f0c6
mov edx, 0x5991b8
jmp 0x40f0bf