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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 8], esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
cmp dword [esi + 0x7c], ecx
jbe 0x1000e42d
mov eax, dword [esi + 0x78]
mov esi, dword [eax]
cmp esi, eax
je 0x1000e42a
mov eax, dword [esi + 8]
cmp byte [eax + 0x30], 0
je 0x1000e410
add eax, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x1000e3da
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
lea ebx, [eax + 0x1800]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
jmp 0x1000e415
mov ebx, 0x2000
mov eax, dword [ebp - 8]
add ecx, ebx
mov esi, dword [esi]
mov dword [ebp - 0xc], ecx
cmp esi, dword [eax + 0x78]
jne 0x1000e3c6
xor ebx, ebx
mov esi, eax
jmp 0x1000e42d
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp dword [eax], 0
je 0x1000e444
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [esi + 0x7c], 0
jbe 0x1000e5ca
mov eax, dword [esi + 0x78]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x1000e5ca
mov edi, dword [esi + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
sub edx, ebx
mov eax, dword [edi + 0x2c]
add ecx, ebx
cmp byte [edi + 0x30], 0
lea ebx, [edi + 0x18]
mov dword [ebp - 4], ecx
je 0x1000e57c
mov ecx, ebx
cmp eax, 0x10
jb 0x1000e49b
mov ecx, dword [ebx]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1000e4a5
mov eax, dword [edi]
push ecx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push edx
push dword [ebp - 4]
call fcn.1000d040
mov ecx, dword [edi + 0x28]
add esp, 0x18
mov edi, dword [edi + 0x10]
add edi, 0x5c
add edi, ecx
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x10], edi
jb 0x1000e4d3
mov ebx, dword [ebx]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x1000e5ae
cmp ebx, 0xffffffff
je 0x1000e5ae
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, edi
mov dword [ebp - 0xc], 0
xor edi, edi
push edi
push ecx
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e561
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1000e55e
cmp edi, esi
ja 0x1000e55e
add edi, eax
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
push 0x400
add eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000e532
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, 0xa0d
add edi, dword [ebp - 0x10]
push ebx
mov word [edi + eax], cx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 2
jmp 0x1000e5ae
cmp eax, 0x10
jb 0x1000e583
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1000e58d
mov eax, dword [edi]
push ebx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push edx
push ecx
call fcn.1000d040
mov ecx, dword [edi + 0x28]
add esp, 0x18
mov edi, dword [edi + 0x10]
add edi, 0x51
add edi, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov esi, dword [esi]
add ebx, edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
cmp esi, dword [eax + 0x78]
jne 0x1000e473
mov eax, dword [ecx]
mov edx, 0x2d2d
push 0x20
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
mov word [ebx + eax], dx
mov eax, dword [ecx]
add eax, 2
add eax, ebx
push eax
call fcn.1007caa0
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
pop edi
pop esi
mov dword [eax + ebx + 0x22], 0xa0d2d2d
lea eax, [ebx + 0x26]
pop ebx
mov esp, ebp
pop ebp
ret 8