Function at 0x40d770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a330
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x608ec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x28], ebx
cmp dword [ebx + 0x90], 0
je 0x40dbc3
cmp dword [ebx + 0xd4], 0
je 0x40dbcd
cmp dword [ebx + 0xdc], 0
je 0x40dbd9
cmp dword [ebx + 0xe4], 0
je 0x40dbe5
lea edi, [ebx + 0x8c]
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.0040b270
mov ecx, edi
mov esi, eax
call fcn.0040b250
cmp eax, esi
jne 0x40d81b
mov ecx, dword [ebx + 0xe4]
call fcn.0040a7a0
mov ecx, ebx
call fcn.0040dc30
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 + 0xc]
mov esi, str.____RYEOL_FB3B405B7EAE495aB0C0295C54D4E096_
test eax, eax
mov ecx, edi
cmovne esi, eax
mov dword [ebp - 0x24], esi
call fcn.0040b290
test eax, eax
jne 0x40d86f
push ecx
push str._r_n__
mov ecx, ebx
call fcn.0040cee0
push ecx
push esi
mov ecx, ebx
call fcn.0040cee0
push ecx
push str.___r_n
mov ecx, ebx
call fcn.0040cee0
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 ecx, edi
call fcn.0040b370
mov ecx, edi
test eax, eax
je 0x40dac5
call fcn.0040b290
mov ecx, edi
mov dword [ebp - 0x20], eax
call fcn.0040b2b0
cmp dword [ebp - 0x20], eax
jne 0x40d89c
push ecx
push 0x5e4614
jmp 0x40d83c
mov ecx, edi
call fcn.0040b2b0
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.0040b2d0
mov edi, dword [ebx + 0x30]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], ecx
mov edi, dword [edi]
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x14], esi
jbe 0x40d8dc
lea ecx, [ebp - 0x1c]
call fcn.0040e290
sub dword [ebp - 0x14], 1
jne 0x40d8c8
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
test byte [edi + 0x18], 1
je 0x40d988
mov eax, dword [ebx + 0xc4]
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + ecx*4]
cmp ecx, 0xffffffff
je 0x40d901
call fcn.0040a7e0
mov esi, eax
push ecx
push 0x5e4614
mov ecx, ebx
call fcn.0040cee0
push ecx
push dword [ebp - 0x24]
mov ecx, ebx
call fcn.0040cee0
push ecx
push 0x5e3bb0
mov ecx, ebx
call fcn.0040cee0
push ecx
push str.Content_Disposition:_form_data__name_
mov ecx, ebx
call fcn.0040cee0
push ecx
push dword [edi + 0x10]
mov ecx, ebx
push dword [ebx + 0x18]
call fcn.0040cf30
push ecx
push str.___filename_
mov ecx, ebx
call fcn.0040cee0
push ecx
push dword [ebp - 0x18]
mov ecx, ebx
push dword [ebx + 0x18]
call fcn.0040cf30
push ecx
push str.__r_nContent_Type:
mov ecx, ebx
call fcn.0040cee0
mov eax, dword [ebx + 0xc8]
push ecx
mov ecx, dword [ebp - 0x20]
push dword [eax + ecx*4]
mov ecx, ebx
call fcn.0040cee0
push ecx
push str._r_n_r_n
jmp 0x40da7e
mov eax, dword [edi + 0x14]
test eax, eax
je 0x40da03
cmp byte [eax], 0
je 0x40da03
cmp dword [ebx + 0x18], esi
je 0x40d9ac
push eax
mov ecx, ebx
call fcn.0040cc90
mov esi, eax
mov dword [ebp - 0x20], 1
jmp 0x40d9be
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0040cc50
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov edx, esi
lea ecx, [esi + 1]
mov dword [ebp - 0x1c], edx
mov al, byte [esi]
inc esi
test al, al
jne 0x40d9c6
sub esi, ecx
cmp dword [ebx + 0xd0], 0
je 0x40d9f8
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x40d9f8
push eax
call fcn.0057bbb0
mov edx, dword [ebp - 0x1c]
add esp, 4
mov dword [ebx + 0xcc], 0
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0xd0], eax
jmp 0x40da2e
cmp dword [ebx + 0xd0], esi
je 0x40da24
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x40da24
push eax
call fcn.0057bbb0
add esp, 4
mov dword [ebx + 0xcc], esi
mov dword [ebx + 0xd0], esi
xor esi, esi
xor edx, edx
mov ecx, 0xcc
mov eax, ebx
push ecx
push 0x5e4614
mov dword [eax + ecx], edx
mov ecx, ebx
call fcn.0040cee0
push ecx
push dword [ebp - 0x24]
mov ecx, ebx
call fcn.0040cee0
push ecx
push 0x5e3bb0
mov ecx, ebx
call fcn.0040cee0
push ecx
push str.Content_Disposition:_form_data__name_
mov ecx, ebx
call fcn.0040cee0
push ecx
push dword [edi + 0x10]
mov ecx, ebx
push dword [ebx + 0x18]
call fcn.0040cf30
push ecx
push str.__r_n_r_n
mov ecx, ebx
call fcn.0040cee0
push dword [ebp - 0x18]
mov eax, dword [edi + 0x18]
lea ecx, [ebx + 0x8c]
and eax, 1
push eax
push esi
push dword [edi + 0x10]
call fcn.0040b710
test esi, esi
jne 0x40daaf
push ecx
push 0x5e3bb0
mov ecx, ebx
call fcn.0040cee0
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 esi, 0x400
mov dword [ebp - 0x24], esi
call fcn.0040b310
cmp eax, esi
jae 0x40dae2
mov ecx, edi
call fcn.0040b310
mov esi, eax
mov dword [ebp - 0x24], esi
lea ecx, [ebx + 0x8c]
xor edi, edi
call fcn.0040b340
test eax, eax
je 0x40db82
cmp dword [ebx + 0xec], edi
jne 0x40db1a
push 0xe000
call fcn.0057bce0
add esp, 4
mov dword [ebx + 0xec], eax
test eax, eax
je 0x40dbf1
lea ecx, [ebx + 0x8c]
call fcn.0040b2d0
lea ecx, [eax - 1]
mov dword [ebp - 0x1c], ecx
mov eax, 0xe000
cmp edi, esi
jae 0x40dba0
sub esi, edi
cmp esi, eax
push 0
cmova esi, eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx + 0xc4]
push esi
push dword [ebx + 0xec]
push dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40dbfb
cmp esi, dword [ebp - 0x20]
jne 0x40dc0f
push 1
push esi
push dword [ebx + 0xec]
mov ecx, ebx
call fcn.0040ce00
mov ecx, dword [ebp - 0x1c]
add edi, esi
mov esi, dword [ebp - 0x24]
jmp 0x40db2b
lea ecx, [ebx + 0x8c]
call fcn.0040b2f0
mov ecx, dword [ebx + 0xcc]
push 1
add ecx, eax
push esi
push ecx
mov ecx, ebx
call fcn.0040ce00
lea ecx, [ebx + 0x8c]
call fcn.0040b310
test eax, eax
jmp 0x40daa0
mov ecx, 0x68
call fcn.0040a170
xor edx, edx
mov ecx, str.CHttpClientT::_ProceedUploadContext:_m_hInternet_can_not_be_NULL.
call fcn.0040a220
xor edx, edx
mov ecx, str.CHttpClientT::_ProceedUploadContext:_m_hConnection_can_not_be_NULL.
call fcn.0040a220
xor edx, edx
mov ecx, str.CHttpClientT::_ProceedUploadContext:_m_hRequest_can_not_be_NULL.
call fcn.0040a220
mov ecx, 0x66
call fcn.0040a170
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x25a
call fcn.0040a250
mov ecx, 0x69
call fcn.0040a170
mov ecx, dword [ebp - 0x28]
call fcn.0040df30
mov ecx, dword [ebp - 0x2c]
call fcn.0040a310
int3