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

Disassembly:
jmp 0x410f10
sub esp, 0x424
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
push esi
mov eax, dword [ebx]
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
mov dword [esp + 0x28], esi
je 0x410f38
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], edi
mov ecx, esi
call fcn.00401460
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebx], eax
mov ebp, dword [esi + 0xea78]
mov eax, dword [esi + 0xea7c]
mov dword [esp + 0x1c], edi
cmp ebp, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], ebp
jae 0x41118b
lea esi, [ebp + 0x200]
mov dword [esp + 0x14], esi
jmp 0x410f7a
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x800]
xor ebx, ebx
dec eax
je 0x4110ed
dec eax
jne 0x411120
mov esi, dword [esp + 0x14]
xor ebp, ebp
push ebp
push 0x8000080
push 3
push ebp
push 1
push connect
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebp
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x2c], eax
add eax, 0x1801
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov al, byte [0x42b504]
mov byte [esp + 0x30], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
push esi
call fcn.004010fa
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x43c]
push eax
push esi
push ecx
push edx
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:__s_r_n_r_n
push ebx
call dword [sym.imp.MSVCRT.dll_swprintf]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp + 0x2c]
add esp, 0x1c
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push ebp
push eax
lea ecx, [esp + 0x38]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411096
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x411096
cmp ebp, dword [esp + 0x2c]
ja 0x411096
mov eax, dword [esp + 0x20]
mov edx, ecx
lea esi, [esp + 0x30]
push 0
lea edi, [eax + ebp]
xor eax, eax
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
add ebp, esi
push eax
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411039
push 0x425f28
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, eax
mov eax, dword [esp + 0x24]
mov edx, ecx
mov esi, 0x425f28
lea edi, [eax + ebp]
mov eax, dword [esp + 0x14]
add edi, ebx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x425f28
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp + 0x24]
add esp, 4
add eax, edx
add eax, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jmp 0x411120
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x43c]
push esi
push ebp
mov ebx, eax
push ecx
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push ebx
call dword [sym.imp.MSVCRT.dll_swprintf]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x18
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x438]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov esi, ebx
mov edi, dword [edx]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add eax, ecx
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x411156
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add ebp, 0xa04
add edx, 0xa04
mov ecx, dword [eax + 0xea7c]
mov dword [esp + 0x24], ebp
cmp ebp, ecx
mov dword [esp + 0x14], edx
jb 0x410f76
mov ebx, dword [esp + 0x438]
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebx]
mov ebp, dword [esp + 0x43c]
mov dx, word [0x425e9c]
push ebp
mov word [ecx + edi], dx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, eax
mov eax, dword [ebx]
mov edx, ecx
mov esi, ebp
lea edi, [eax + edi + 2]
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
call edi
mov esi, dword [ebx]
mov cx, word [str.___r_n]
add eax, esi
mov esi, dword [esp + 0x24]
push ebp
lea eax, [eax + esi + 2]
mov word [eax], cx
mov dl, byte [0x425e96]
mov byte [eax + 2], dl
call edi
add esp, 0xc
lea eax, [eax + esi + 5]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret 8