Function at 0x10035e22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x23c], eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0x22c], edx
mov ebx, eax
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x228], ebx
mov dword [edx], eax
test edi, edi
jne 0x10035e84
xor eax, eax
jmp 0x100362cd
call fcn.100364c9
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x10035e9b
push 0x1b
pop eax
jmp 0x100362cd
mov ecx, dword [ebp - 0x224]
test ecx, ecx
push eax
mov eax, str.Content_Type:_multipart_form_data
cmovne eax, ecx
push eax
push str._s__boundary_s_r_n
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.10035d38
add esp, 0x14
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10035ee4
push dword [ebp - 0x210]
call dword [0x10145380]
mov eax, dword [ebp - 0x224]
jmp 0x100362cc
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x230], eax
or esi, dword [ebp - 0x218]
je 0x10035f23
push 0x1012fe98
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100362a0
push dword [ebp - 0x210]
lea eax, [ebp - 0x21c]
push str.___s_r_n
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100362a0
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100362a0
lea eax, [ebp - 0x21c]
xor edx, edx
push eax
push dword [edi + 8]
lea ecx, [ebp - 0x214]
push dword [edi + 4]
call fcn.10035c3c
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100362a0
push 0x101361e8
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100362a0
cmp dword [edi + 0x24], eax
je 0x10036009
test ebx, ebx
je 0x10035fd0
push ebx
call dword [0x10145380]
pop ecx
call fcn.100364c9
mov dword [ebp - 0x228], eax
test eax, eax
je 0x10036320
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100362a0
mov ebx, edi
mov dword [ebp - 0x220], edi
cmp dword [edi + 0x24], 0
je 0x10036068
xor eax, eax
mov dword [ebp - 0x224], eax
cmp dword [ebx + 0x2c], eax
jne 0x1003603a
mov ecx, dword [ebx + 0xc]
call fcn.10035dc2
mov dword [ebp - 0x224], eax
test eax, eax
je 0x1003639b
cmp dword [ebx + 0x2c], 0
mov ecx, eax
lea eax, [ebp - 0x21c]
cmovne ecx, dword [ebx + 0x2c]
push ecx
push dword [ebp - 0x228]
push str._r_n___s_r_nContent_Disposition:_attachment__filename__s_
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
add esp, 0x14
jmp 0x100360b5
test byte [edi + 0x28], 0x51
je 0x100360d1
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x10036089
test byte [edi + 0x28], 1
je 0x100360c9
test eax, eax
jne 0x10036089
mov ecx, dword [edi + 0xc]
call fcn.10035dc2
jmp 0x1003608b
xor eax, eax
cmp dword [edi + 0x2c], 0
mov dword [ebp - 0x224], eax
cmovne eax, dword [edi + 0x2c]
push eax
push str.__filename__s_
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x100360c9
push eax
call dword [0x10145380]
pop ecx
test esi, esi
jne 0x100362a0
cmp dword [ebx + 0x1c], 0
je 0x100360ff
push dword [ebx + 0x1c]
lea eax, [ebp - 0x21c]
push str._r_nContent_Type:__s
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100362a0
mov ebx, dword [ebx + 0x20]
jmp 0x1003612e
push dword [ebx]
lea eax, [ebp - 0x21c]
push str._r_n_s
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100362a0
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x10036104
test esi, esi
jne 0x100362a0
push str._r_n_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100362a0
test byte [edi + 0x28], 3
jne 0x100361ac
test byte [edi + 0x28], 0x10
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x214]
push eax
je 0x10036180
push dword [edi + 0x18]
push dword [edi + 0x14]
jmp 0x10036194
test byte [edi + 0x28], 0x40
push dword [edi + 0x10]
je 0x10036191
push dword [edi + 0x30]
push 2
pop edx
jmp 0x10036197
push dword [edi + 0xc]
xor edx, edx
inc edx
call fcn.10035c3c
mov ebx, dword [ebp - 0x220]
add esp, 0xc
mov esi, eax
jmp 0x1003628b
mov ebx, dword [ebp - 0x220]
push dword [ebx + 0xc]
push 0x10130640
call fcn.100e8209
pop ecx
pop ecx
test eax, eax
jne 0x100361cc
call fcn.1003b587
jmp 0x100361db
push 0x1012d074
push dword [ebx + 0xc]
call fcn.100397e9
pop ecx
pop ecx
mov dword [ebp - 0x220], eax
test eax, eax
je 0x10036264
call fcn.1003b587
mov ecx, dword [ebp - 0x220]
push ecx
cmp ecx, eax
je 0x10036248
call fcn.10039d78
pop ecx
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebx + 0xc]
lea ecx, [ebp - 0x214]
push 3
pop edx
call fcn.10035c3c
add esp, 0xc
mov esi, eax
jmp 0x1003628b
lea ecx, [ebp - 0x21c]
xor edx, edx
push ecx
push eax
lea eax, [ebp - 0x20c]
inc edx
push eax
lea ecx, [ebp - 0x214]
call fcn.10035c3c
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1003628b
push dword [ebp - 0x220]
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.1003bd09
add esp, 0x10
test eax, eax
jne 0x1003621c
jmp 0x1003628b
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1003627f
push dword [ebx + 0xc]
push str.couldnt_open_file___s_
push eax
call fcn.10018208
add esp, 0xc
mov eax, dword [ebp - 0x22c]
push 0x1a
pop esi
and dword [eax], 0
mov ebx, dword [ebx + 0x24]
mov dword [ebp - 0x220], ebx
test ebx, ebx
je 0x100362de
test esi, esi
je 0x10036011
mov ebx, dword [ebp - 0x210]
lea ecx, [ebp - 0x230]
call fcn.10035d91
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x100362c3
push eax
call dword [0x10145380]
pop ecx
push ebx
call dword [0x10145380]
mov eax, esi
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x100362a0
mov ebx, dword [ebp - 0x228]
cmp dword [edi + 0x24], esi
je 0x1003630f
push ebx
push str._r_n___s__
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100362a0
mov edi, dword [edi]
test edi, edi
je 0x10036323
mov esi, dword [ebp - 0x21c]
jmp 0x10035ef6
push 0x1b
pop esi
test esi, esi
jne 0x100362a0
mov ebx, dword [ebp - 0x210]
lea eax, [ebp - 0x21c]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.10035d38
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100362a6
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x21c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x10036380
push eax
call dword [0x10145380]
pop ecx
push ebx
call dword [0x10145380]
mov eax, dword [ebp - 0x22c]
pop ecx
mov ecx, dword [ebp - 0x238]
mov dword [eax], ecx
jmp 0x10035e7d
push 0x1b
pop esi
jmp 0x100362a0