Function at 0x10079b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x101050c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x240], 0
movlpd qword [ebp - 0x24c], xmm0
mov dword [ebp - 0x254], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x260], edi
test ebx, ebx
je 0x1007a2a6
push edi
call fcn.100776c0
add esp, 4
push eax
push edi
call fcn.100776c0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.1005ddb0
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x244], edi
test edi, edi
jne 0x10079beb
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009a83f
mov esp, ebp
pop ebp
ret
push edi
test esi, esi
mov eax, str.Content_Type:_multipart_form_data
cmovne eax, esi
push eax
push str._s__boundary_s_r_n
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.10079980
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10079c30
push edi
call dword [0x10105004]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009a83f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x24c]
or eax, dword [ebp - 0x248]
je 0x10079c7b
push 0x100d2e4c
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1007a174
mov edi, dword [ebp - 0x244]
push edi
push str.___s_r_n
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007a174
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1007a174
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [ebx + 8]
cdq
push edx
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x240]
push edi
push eax
call fcn.10079830
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1007a174
push 0x100f06ac
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1007a174
cmp dword [ebx + 0x24], eax
je 0x10079d81
push dword [ebp - 0x254]
call dword [0x10105004]
mov esi, dword [ebp - 0x260]
push esi
call fcn.100776c0
add esp, 8
push eax
push esi
call fcn.100776c0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.1005ddb0
add esp, 0xc
mov dword [ebp - 0x254], eax
test eax, eax
je 0x1007a232
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007a174
mov esi, ebx
mov dword [ebp - 0x258], ebx
nop dword [eax]
cmp dword [ebx + 0x24], 0
je 0x10079dd2
push dword [ebp - 0x254]
lea eax, [ebp - 0x24c]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007a174
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
push esi
jmp 0x10079df2
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x10079e04
cmp dword [ebx + 0x2c], 0
jne 0x10079de3
test al, 1
je 0x10079dfc
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
push ebx
call fcn.1007a2c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1007a174
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10079e31
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007a174
mov esi, dword [esi + 0x20]
test esi, esi
je 0x10079e70
nop dword [eax + eax]
push dword [esi]
lea eax, [ebp - 0x24c]
push str._r_n_s
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007a174
mov esi, dword [esi + 4]
test esi, esi
jne 0x10079e40
jmp 0x10079e78
test edi, edi
jne 0x1007a174
push str._r_n_r_n
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1007a174
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x10079f55
test al, 0x10
je 0x10079ebe
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [ebx + 0x18]
cdq
push edx
push eax
push dword [ebx + 0x14]
jmp 0x10079f3d
test al, 0x40
je 0x10079f21
test al, al
jns 0x10079ece
mov esi, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
jmp 0x10079ed6
mov eax, dword [ebx + 0x10]
cdq
mov esi, eax
mov edi, edx
mov ebx, dword [ebx + 0x30]
push 0x10
call dword [section..data]
add esp, 4
test eax, eax
je 0x1007a14e
mov ecx, dword [ebp - 0x240]
mov dword [eax], 0
mov dword [eax + 8], ebx
mov dword [eax + 4], 2
mov dword [ebp - 0x240], eax
test ecx, ecx
je 0x10079f0e
mov dword [ecx], eax
add dword [ebp - 0x24c], esi
adc dword [ebp - 0x248], edi
xor edi, edi
jmp 0x1007a153
test al, al
jns 0x10079f2d
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x10079f31
mov eax, dword [ebx + 0x10]
cdq
lea ecx, [ebp - 0x24c]
push ecx
push edx
push eax
push dword [ebx + 0xc]
lea eax, [ebp - 0x240]
push 1
push eax
call fcn.10079830
add esp, 0x18
mov edi, eax
jmp 0x1007a159
mov esi, dword [ebp - 0x258]
push dword [esi + 0xc]
push 0x100f1d60
call fcn.100671c0
add esp, 8
test eax, eax
je 0x10079f83
push 0
call fcn.100a2d8f
mov esi, eax
add esp, 4
mov dword [ebp - 0x25c], esi
jmp 0x10079f9b
push 0x100f13a0
push dword [esi + 0xc]
call fcn.100ad840
add esp, 8
mov dword [ebp - 0x25c], eax
mov esi, eax
test esi, esi
je 0x1007a1af
push 0
call fcn.100a2d8f
add esp, 4
push esi
cmp esi, eax
je 0x1007a064
call fcn.100a38ef
mov eax, dword [ebp - 0x258]
push 0x10
mov edi, dword [eax + 0xc]
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10079fdd
lea edi, [eax + 0x1b]
jmp 0x1007a159
mov eax, dword [ebp - 0x240]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [ebp - 0x240], esi
test eax, eax
je 0x10079fff
mov dword [eax], esi
push dword [esi + 8]
push 0x100f1d60
call fcn.100671c0
add esp, 8
test eax, eax
jne 0x1007a053
lea eax, [ebp - 0x23c]
push eax
push dword [esi + 8]
call fcn.100ad237
add esp, 8
test eax, eax
jne 0x1007a05a
mov eax, dword [ebp - 0x236]
and eax, 0xf000
cmp eax, 0x4000
je 0x1007a05a
mov eax, dword [ebp - 0x224]
add dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x220]
adc dword [ebp - 0x248], eax
xor edi, edi
jmp 0x1007a159
mov edi, 0x2b
jmp 0x1007a159
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.100ada95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a159
mov ebx, dword [ebp - 0x240]
nop word [eax + eax]
push 0x10
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x1007a14e
mov ecx, esi
mov dword [edi], 0
or ecx, 0
jne 0x1007a0c9
lea esi, [ebp - 0x204]
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1007a0c0
sub esi, ecx
lea eax, [esi + 1]
push eax
call dword [section..data]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x1007a144
push esi
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.1009dd40
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [edi + 0xc], esi
mov byte [esi + eax], 0
mov dword [edi + 4], 1
test ebx, ebx
je 0x1007a105
mov dword [ebx], edi
push dword [ebp - 0x25c]
add dword [ebp - 0x24c], esi
lea eax, [ebp - 0x204]
push 0x200
adc dword [ebp - 0x248], 0
mov ebx, edi
push 1
push eax
mov dword [ebp - 0x240], ebx
xor edi, edi
call fcn.100ada95
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1007a090
jmp 0x1007a153
push edi
call dword [0x10105004]
add esp, 4
mov edi, 0x1b
mov ebx, dword [ebp - 0x250]
mov esi, dword [ebp - 0x258]
mov esi, dword [esi + 0x24]
mov dword [ebp - 0x258], esi
test esi, esi
je 0x1007a1e6
test edi, edi
je 0x10079d90
mov ebx, dword [ebp - 0x244]
lea eax, [ebp - 0x270]
push eax
call fcn.10079ad0
push dword [ebp - 0x254]
call dword [0x10105004]
push ebx
call dword [0x10105004]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009a83f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x1007a1d0
mov eax, dword [ebp - 0x258]
push dword [eax + 0xc]
push str.couldnt_open_file___s_
push ecx
call fcn.1005bee0
add esp, 0xc
mov eax, dword [ebp - 0x264]
mov edi, 0x1a
mov dword [eax], 0
jmp 0x1007a159
test edi, edi
jne 0x1007a174
mov esi, dword [ebp - 0x254]
cmp dword [ebx + 0x24], edi
je 0x1007a21b
push esi
push str._r_n___s__
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007a174
mov ebx, dword [ebx]
mov dword [ebp - 0x250], ebx
test ebx, ebx
je 0x1007a23c
mov edi, dword [ebp - 0x244]
jmp 0x10079c42
mov edi, 0x1b
jmp 0x1007a174
test edi, edi
jne 0x1007a174
mov ebx, dword [ebp - 0x244]
lea eax, [ebp - 0x24c]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10079980
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007a17a
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x24c]
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x248]
mov dword [ecx + 4], eax
call dword [0x10105004]
push ebx
call dword [0x10105004]
mov eax, dword [ebp - 0x264]
add esp, 8
mov ecx, dword [ebp - 0x26c]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009a83f
mov esp, ebp
pop ebp
ret