Function at 0x403d22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [eax], ebx
je 0x40416b
push dword [ebp + 8]
call fcn.004045bc
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x403d64
push 0x1b
pop eax
jmp 0x40416d
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jne 0x403d70
mov eax, str.Content_Type:_multipart_form_data
push dword [ebp - 0x10]
push eax
push str._s__boundary_s_r_n
lea eax, [ebp - 4]
push ebx
push eax
call fcn.004042c6
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x403d9b
push dword [ebp - 0x10]
call dword [0x4236e0]
pop ecx
jmp 0x40413d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
or eax, dword [ebp - 8]
je 0x403dc8
lea eax, [ebp - 0xc]
push 0x423540
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40411f
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push str.___s_r_n
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x40411f
lea eax, [ebp - 0xc]
push str.Content_Disposition:_form_data__name_
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40411f
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi + 8]
cdq
push edx
push eax
push dword [edi + 4]
lea eax, [ebp - 4]
push ebx
push eax
call fcn.00404172
mov esi, eax
add esp, 0x18
cmp esi, ebx
jne 0x40411f
lea eax, [ebp - 0xc]
push 0x423338
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40411f
cmp dword [edi + 0x24], ebx
je 0x403e8f
push dword [ebp - 0x14]
call dword [0x4236e0]
push dword [ebp + 8]
call fcn.004045bc
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x4040f6
push eax
lea eax, [ebp - 0xc]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x40411f
mov dword [ebp + 0x10], edi
cmp dword [edi + 0x24], ebx
je 0x403ec6
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x40411f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
jmp 0x403edf
mov eax, dword [edi + 0x28]
test al, 0x51
je 0x403ef1
cmp dword [edi + 0x2c], ebx
jne 0x403ed6
test al, 1
je 0x403ee9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.00404307
add esp, 0xc
mov esi, eax
cmp esi, ebx
jne 0x40411f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x403f1b
push eax
lea eax, [ebp - 0xc]
push str._r_nContent_Type:__s
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x40411f
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x20]
test ebx, ebx
je 0x403f4b
push dword [ebx]
lea eax, [ebp - 0xc]
push str._r_n_s
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40411f
mov ebx, dword [ebx + 4]
jmp 0x403f21
test esi, esi
jne 0x40411f
lea eax, [ebp - 0xc]
push 0x42333c
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40411f
mov eax, dword [edi + 0x28]
test al, 3
jne 0x403fd6
test al, 0x10
je 0x403f8c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi + 0x18]
cdq
push edx
push eax
push dword [edi + 0x14]
jmp 0x403fc6
test al, 0x40
je 0x403fad
test al, 0x80
je 0x403f9c
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
jmp 0x403fa0
mov eax, dword [edi + 0x10]
cdq
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push dword [edi + 0x30]
push 2
jmp 0x403fc8
test al, 0x80
je 0x403fb9
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
jmp 0x403fbd
mov eax, dword [edi + 0x10]
cdq
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push dword [edi + 0xc]
push 1
lea eax, [ebp - 4]
push eax
call fcn.00404172
add esp, 0x18
jmp 0x404032
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0xc]
push 0x4237d8
call fcn.00410d5a
pop ecx
test eax, eax
pop ecx
je 0x403ff3
mov eax, dword [sym.imp.MSVCRT.dll__iob]
jmp 0x404003
push 0x4232ac
push dword [ebx + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
test eax, eax
mov dword [ebp + 0x14], eax
je 0x404088
cmp eax, dword [sym.imp.MSVCRT.dll__iob]
push eax
je 0x404036
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 4]
push dword [ebx + 0xc]
push 3
push eax
call fcn.00404172
add esp, 0x1c
mov esi, eax
jmp 0x4040aa
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push 0x200
lea eax, [ebp - 0x218]
push 1
push eax
call ebx
add esp, 0x10
test eax, eax
je 0x4040aa
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 4]
push 1
push eax
call fcn.00404172
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4040aa
push dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push 0x200
push 1
push eax
jmp 0x40404a
cmp dword [ebp + 8], 0
je 0x4040a1
push dword [ebx + 0xc]
push str.couldnt_open_file___s_
push dword [ebp + 8]
call fcn.0040e1fd
add esp, 0xc
mov eax, dword [ebp + 0xc]
push 0x1a
pop esi
and dword [eax], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x24]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x4040c2
test esi, esi
jne 0x40411f
xor ebx, ebx
jmp 0x403e92
test esi, esi
jne 0x40411f
cmp dword [edi + 0x24], esi
je 0x4040e9
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push str._r_n___s__
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40411f
mov edi, dword [edi]
test edi, edi
je 0x4040fb
xor ebx, ebx
jmp 0x403da1
push 0x1b
pop esi
jmp 0x4040fd
xor ebx, ebx
cmp esi, ebx
jne 0x40411f
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push str._r_n___s___r_n
push eax
lea eax, [ebp - 4]
push eax
call fcn.004042c6
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x404141
lea eax, [ebp - 0x18]
push eax
call fcn.00403c95
push dword [ebp - 0x14]
call dword [0x4236e0]
push dword [ebp - 0x10]
call dword [0x4236e0]
add esp, 0xc
mov eax, esi
jmp 0x40416d
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
call dword [0x4236e0]
push dword [ebp - 0x10]
call dword [0x4236e0]
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret