Function at 0x436830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4ad0cc]
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 0x436f35
mov ecx, edi
call fcn.00441190
push eax
push ecx
mov ecx, edi
call fcn.00441190
add esp, 4
push eax
push str._________________________08x_08x
call fcn.0044dce0
add esp, 0xc
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4368d9
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048079e
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.00436580
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x436f67
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
jmp 0x436920
mov eax, dword [ebp - 0x254]
or eax, dword [ebp - 0x250]
je 0x436953
push 0x496d04
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00436580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x436f4d
push dword [ebp - 0x264]
lea eax, [ebp - 0x254]
push str.___s_r_n
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00436580
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436f4d
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00436580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x436f4d
mov eax, dword [ebx + 8]
cdq
test edx, edx
jl 0x436f48
jg 0x4369b9
test eax, eax
jb 0x436f48
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
push dword [ebx + 4]
xor edx, edx
lea ecx, [ebp - 0x248]
call fcn.004363d0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436f4d
push 0x4970bc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00436580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x436f4d
cmp dword [ebx + 0x24], eax
je 0x436a6d
push dword [ebp - 0x258]
call dword [0x4ad774]
add esp, 4
mov ecx, edi
call fcn.00441190
push eax
push ecx
mov ecx, edi
call fcn.00441190
add esp, 4
push eax
push str._________________________08x_08x
call fcn.0044dce0
add esp, 0xc
mov dword [ebp - 0x258], eax
test eax, eax
je 0x436ec9
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.00436580
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436f4d
mov edi, ebx
mov dword [ebp - 0x25c], ebx
cmp dword [ebx + 0x24], 0
je 0x436aaa
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.00436580
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436f4d
mov ecx, edi
jmp 0x436abd
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x436adc
cmp dword [ebx + 0x2c], 0
jne 0x436abb
test al, 1
je 0x436ad4
mov ecx, ebx
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x248]
call fcn.00436750
mov esi, eax
add esp, 4
test esi, esi
jne 0x436f4d
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x436b09
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00436580
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436f4d
mov edi, dword [edi + 0x20]
test edi, edi
je 0x436b40
push dword [edi]
lea eax, [ebp - 0x254]
push str._r_n_s
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00436580
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436f4d
mov edi, dword [edi + 4]
test edi, edi
jne 0x436b10
jmp 0x436b48
test esi, esi
jne 0x436f4d
push str._r_n_r_n
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00436580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x436f4d
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x436c90
test al, 0x10
je 0x436ba3
mov eax, dword [ebx + 0x18]
cdq
test edx, edx
jl 0x436dad
jg 0x436b92
test eax, eax
jb 0x436dad
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
push dword [ebx + 0x14]
jmp 0x436c76
test al, 0x40
je 0x436c48
test al, al
jns 0x436bb7
mov esi, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
jmp 0x436bbf
mov eax, dword [ebx + 0x10]
cdq
mov esi, eax
mov edi, edx
mov ebx, dword [ebx + 0x30]
test edi, edi
jl 0x436c38
jg 0x436bcc
test esi, esi
jb 0x436c38
cmp dword [ebp - 0x250], 0
jl 0x436c38
jg 0x436be0
cmp dword [ebp - 0x254], 0
jb 0x436c38
push 0x10
call dword [0x4ad654]
add esp, 4
test eax, eax
jne 0x436bfd
mov ebx, dword [ebp - 0x260]
lea esi, [eax + 0x1b]
jmp 0x436e59
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 0x436c1f
mov dword [ecx], eax
add dword [ebp - 0x254], esi
mov ebx, dword [ebp - 0x260]
adc dword [ebp - 0x250], edi
xor esi, esi
jmp 0x436e59
mov ebx, dword [ebp - 0x260]
mov esi, 0x2b
jmp 0x436e59
test al, al
jns 0x436c54
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x436c58
mov eax, dword [ebx + 0x10]
cdq
test edx, edx
jl 0x436dad
jg 0x436c6a
test eax, eax
jb 0x436dad
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
push dword [ebx + 0xc]
mov edx, 1
lea ecx, [ebp - 0x248]
call fcn.004363d0
add esp, 0x10
mov esi, eax
jmp 0x436e59
mov edi, dword [ebp - 0x25c]
push dword [edi + 0xc]
push 0x49927c
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x436cb3
call dword [sym.imp.MSVCR120.dll___iob_func]
jmp 0x436cc4
push 0x497c38
push dword [edi + 0xc]
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x436e27
call dword [sym.imp.MSVCR120.dll___iob_func]
push edi
cmp edi, eax
je 0x436db7
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 0x436dad
jg 0x436d0b
cmp dword [ebp - 0x254], 0
jb 0x436dad
push 0x10
call dword [0x4ad654]
mov esi, eax
add esp, 4
test esi, esi
jne 0x436d24
lea esi, [eax + 0x1b]
jmp 0x436e59
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 0x436d46
mov dword [eax], esi
push dword [esi + 8]
push 0x49927c
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
je 0x436d9c
lea eax, [ebp - 0x244]
push eax
push dword [esi + 8]
call dword [sym.imp.MSVCR120.dll__stat64]
add esp, 8
test eax, eax
jne 0x436da3
mov eax, dword [ebp - 0x23e]
and eax, 0xf000
cmp eax, 0x4000
je 0x436da3
mov eax, dword [ebp - 0x22c]
add dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x228]
adc dword [ebp - 0x250], eax
xor esi, esi
jmp 0x436e59
push esi
call dword [0x4ad774]
add esp, 4
mov esi, 0x2b
jmp 0x436e59
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
test eax, eax
je 0x436e59
xor edx, edx
jl 0x436dad
jg 0x436de0
test eax, eax
jb 0x436dad
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.004363d0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436e59
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 0x436dd6
jmp 0x436e59
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x436e48
mov eax, dword [ebp - 0x25c]
push dword [eax + 0xc]
push str.couldnt_open_file___s_
push ecx
call fcn.00440670
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 0x436e79
test esi, esi
je 0x436a75
jmp 0x436f4d
test esi, esi
jne 0x436f4d
mov edi, dword [ebp - 0x258]
cmp dword [ebx + 0x24], esi
je 0x436eb2
push edi
push str._r_n___s__
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00436580
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436f4d
mov ebx, dword [ebx]
mov dword [ebp - 0x260], ebx
test ebx, ebx
je 0x436ed0
mov edi, dword [ebp - 0x26c]
jmp 0x436920
mov esi, 0x1b
jmp 0x436f4d
test esi, esi
jne 0x436f4d
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.00436580
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x436f4d
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 [0x4ad774]
add esp, 4
push ebx
call dword [0x4ad774]
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.0048079e
mov esp, ebp
pop ebp
ret
mov esi, 0x2b
lea ecx, [ebp - 0x274]
call fcn.00436620
push dword [ebp - 0x258]
call dword [0x4ad774]
add esp, 4
push dword [ebp - 0x264]
call dword [0x4ad774]
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048079e
mov esp, ebp
pop ebp
ret