Function at 0x536060
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x58693c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov eax, dword [esp + 0x24c]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0xffffffff
jne 0x5360a0
or eax, 0xffffffff
jmp 0x53626e
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], edi
cmp edi, 0xffffffff
mov dword [esp + 0x24c], ebx
jne 0x5360d4
or eax, eax
jmp 0x53626e
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x34], ebp
setne al
mov byte [esp + 0x30], al
cmp ebp, ebx
mov byte [esp + 0x24c], 1
jne 0x536126
test al, al
je 0x536117
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or eax, 0xffffffff
jmp 0x53626e
lea ecx, [esp + 0x18]
push ebx
push ecx
push esi
push ebp
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x536252
cmp dword [esp + 0x18], esi
jne 0x536252
push 0xc0000
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
setne byte [esp + 0x28]
mov dword [esp + 0x2c], ebx
test ebx, ebx
mov byte [esp + 0x24c], 2
je 0x536241
mov edx, dword [esp + 0x258]
push esi
push ebp
push edx
push ebx
call fcn.00535f60
mov ecx, 0x13
mov esi, str.multipart_form_data__boundary___________________________8dprintsreenupload
lea edi, [esp + 0x3c]
mov edx, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x88]
mov dword [esp + 0x20], 0x104
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x534]
test eax, eax
jne 0x5361c2
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
push 1
push ecx
lea ecx, [esp + 0x14c]
push ecx
mov ecx, dword [esp + 0x264]
push edx
push ebx
push eax
call fcn.0055fea0
test eax, eax
jl 0x536235
lea edx, [esp + 0x140]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0
push 0x5e23a4
lea ecx, [esp + 0x18]
mov byte [esp + 0x254], 3
call sub.MFC42.DLL_CString::Find
xor ecx, ecx
mov byte [esp + 0x24c], 2
test eax, eax
setl cl
dec ecx
and ecx, 2
dec ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x53623d
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x1c]
mov al, byte [esp + 0x28]
test al, al
je 0x536252
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [esp + 0x30]
test al, al
je 0x536263
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x240
ret 0xc