Function at 0x433ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 0x268], eax
xorps xmm0, xmm0
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x248], 0
movlpd qword [ebp - 0x254], xmm0
mov dword [ebp - 0x258], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x270], ecx
test ebx, ebx
je 0x4342a5
mov ecx, edi
call fcn.0043e500
push eax
push ecx
mov ecx, edi
call fcn.0043e500
add esp, 4
push eax
push str._________________________08x_08x
call fcn.0044b050
add esp, 0xc
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x433c49
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
push eax
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 - 0x248]
push 0
push eax
call fcn.004338f0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4342d7
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
jmp 0x433c90
mov eax, dword [ebp - 0x254]
or eax, dword [ebp - 0x250]
je 0x433cc3
push 0x493bd4
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4342bd
push dword [ebp - 0x264]
lea eax, [ebp - 0x254]
push str.___s_r_n
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4342bd
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4342bd
mov eax, dword [ebx + 8]
cdq
test edx, edx
jl 0x4342b8
jg 0x433d29
test eax, eax
jb 0x4342b8
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
push dword [ebx + 4]
xor edx, edx
lea ecx, [ebp - 0x248]
call fcn.00433740
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4342bd
push 0x493f8c
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4342bd
cmp dword [ebx + 0x24], eax
je 0x433ddd
push dword [ebp - 0x258]
call dword [0x4aa774]
add esp, 4
mov ecx, edi
call fcn.0043e500
push eax
push ecx
mov ecx, edi
call fcn.0043e500
add esp, 4
push eax
push str._________________________08x_08x
call fcn.0044b050
add esp, 0xc
mov dword [ebp - 0x258], eax
test eax, eax
je 0x434239
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4342bd
mov edi, ebx
mov dword [ebp - 0x25c], ebx
cmp dword [ebx + 0x24], 0
je 0x433e1a
push dword [ebp - 0x258]
lea eax, [ebp - 0x254]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4342bd
mov ecx, edi
jmp 0x433e2d
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x433e4c
cmp dword [ebx + 0x2c], 0
jne 0x433e2b
test al, 1
je 0x433e44
mov ecx, ebx
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x248]
call fcn.00433ac0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4342bd
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x433e79
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4342bd
mov edi, dword [edi + 0x20]
test edi, edi
je 0x433eb0
push dword [edi]
lea eax, [ebp - 0x254]
push str._r_n_s
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4342bd
mov edi, dword [edi + 4]
test edi, edi
jne 0x433e80
jmp 0x433eb8
test esi, esi
jne 0x4342bd
push str._r_n_r_n
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4342bd
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x434000
test al, 0x10
je 0x433f13
mov eax, dword [ebx + 0x18]
cdq
test edx, edx
jl 0x43411d
jg 0x433f02
test eax, eax
jb 0x43411d
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
push dword [ebx + 0x14]
jmp 0x433fe6
test al, 0x40
je 0x433fb8
test al, al
jns 0x433f27
mov esi, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
jmp 0x433f2f
mov eax, dword [ebx + 0x10]
cdq
mov esi, eax
mov edi, edx
mov ebx, dword [ebx + 0x30]
test edi, edi
jl 0x433fa8
jg 0x433f3c
test esi, esi
jb 0x433fa8
cmp dword [ebp - 0x250], 0
jl 0x433fa8
jg 0x433f50
cmp dword [ebp - 0x254], 0
jb 0x433fa8
push 0x10
call dword [0x4aa654]
add esp, 4
test eax, eax
jne 0x433f6d
mov ebx, dword [ebp - 0x260]
lea esi, [eax + 0x1b]
jmp 0x4341c9
mov ecx, dword [ebp - 0x248]
mov dword [eax], 0
mov dword [eax + 8], ebx
mov dword [eax + 4], 2
mov dword [ebp - 0x248], eax
test ecx, ecx
je 0x433f8f
mov dword [ecx], eax
add dword [ebp - 0x254], esi
mov ebx, dword [ebp - 0x260]
adc dword [ebp - 0x250], edi
xor esi, esi
jmp 0x4341c9
mov ebx, dword [ebp - 0x260]
mov esi, 0x2b
jmp 0x4341c9
test al, al
jns 0x433fc4
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x433fc8
mov eax, dword [ebx + 0x10]
cdq
test edx, edx
jl 0x43411d
jg 0x433fda
test eax, eax
jb 0x43411d
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
push dword [ebx + 0xc]
mov edx, 1
lea ecx, [ebp - 0x248]
call fcn.00433740
add esp, 0x10
mov esi, eax
jmp 0x4341c9
mov edi, dword [ebp - 0x25c]
push dword [edi + 0xc]
push 0x49616c
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x434023
call dword [sym.imp.MSVCR120.dll___iob_func]
jmp 0x434034
push 0x494b08
push dword [edi + 0xc]
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x434197
call dword [sym.imp.MSVCR120.dll___iob_func]
push edi
cmp edi, eax
je 0x434127
call dword [sym.imp.MSVCR120.dll_fclose]
mov eax, dword [ebp - 0x25c]
add esp, 4
cmp dword [ebp - 0x250], 0
mov edi, dword [eax + 0xc]
jl 0x43411d
jg 0x43407b
cmp dword [ebp - 0x254], 0
jb 0x43411d
push 0x10
call dword [0x4aa654]
mov esi, eax
add esp, 4
test esi, esi
jne 0x434094
lea esi, [eax + 0x1b]
jmp 0x4341c9
mov eax, dword [ebp - 0x248]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [ebp - 0x248], esi
test eax, eax
je 0x4340b6
mov dword [eax], esi
push dword [esi + 8]
push 0x49616c
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
je 0x43410c
lea eax, [ebp - 0x244]
push eax
push dword [esi + 8]
call dword [sym.imp.MSVCR120.dll__stat64]
add esp, 8
test eax, eax
jne 0x434113
mov eax, dword [ebp - 0x23e]
and eax, 0xf000
cmp eax, 0x4000
je 0x434113
mov eax, dword [ebp - 0x22c]
add dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x228]
adc dword [ebp - 0x250], eax
xor esi, esi
jmp 0x4341c9
push esi
call dword [0x4aa774]
add esp, 4
mov esi, 0x2b
jmp 0x4341c9
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
test eax, eax
je 0x4341c9
xor edx, edx
jl 0x43411d
jg 0x434150
test eax, eax
jb 0x43411d
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
lea eax, [ebp - 0x20c]
mov edx, 1
push eax
lea ecx, [ebp - 0x248]
call fcn.00433740
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4341c9
push edi
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
test eax, eax
jne 0x434146
jmp 0x4341c9
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x4341b8
mov eax, dword [ebp - 0x25c]
push dword [eax + 0xc]
push str.couldnt_open_file___s_
push ecx
call fcn.0043d9e0
add esp, 0xc
mov eax, dword [ebp - 0x268]
mov esi, 0x1a
mov dword [eax], 0
mov edi, dword [ebp - 0x25c]
mov edi, dword [edi + 0x24]
mov dword [ebp - 0x25c], edi
test edi, edi
je 0x4341e9
test esi, esi
je 0x433de5
jmp 0x4342bd
test esi, esi
jne 0x4342bd
mov edi, dword [ebp - 0x258]
cmp dword [ebx + 0x24], esi
je 0x434222
push edi
push str._r_n___s__
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4342bd
mov ebx, dword [ebx]
mov dword [ebp - 0x260], ebx
test ebx, ebx
je 0x434240
mov edi, dword [ebp - 0x26c]
jmp 0x433c90
mov esi, 0x1b
jmp 0x4342bd
test esi, esi
jne 0x4342bd
mov ebx, dword [ebp - 0x264]
lea eax, [ebp - 0x254]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004338f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4342bd
mov ecx, dword [ebp - 0x270]
mov eax, dword [ebp - 0x254]
push edi
mov dword [ecx], eax
mov eax, dword [ebp - 0x250]
mov dword [ecx + 4], eax
call dword [0x4aa774]
add esp, 4
push ebx
call dword [0x4aa774]
mov eax, dword [ebp - 0x268]
add esp, 4
mov ecx, dword [ebp - 0x278]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
mov esi, 0x2b
lea ecx, [ebp - 0x274]
call fcn.00433990
push dword [ebp - 0x258]
call dword [0x4aa774]
add esp, 4
push dword [ebp - 0x264]
call dword [0x4aa774]
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047db8e
mov esp, ebp
pop ebp
ret