Function at 0x4310a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [section..data]
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 0x4317a5
mov ecx, edi
call fcn.0043ba10
push eax
push ecx
mov ecx, edi
call fcn.0043ba10
add esp, 4
push eax
push str._________________________08x_08x
call fcn.00448560
add esp, 0xc
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x431149
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00452da4
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.00430df0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4317d7
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
jmp 0x431190
mov eax, dword [ebp - 0x254]
or eax, dword [ebp - 0x250]
je 0x4311c3
push 0x48b5f0
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00430df0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4317bd
push dword [ebp - 0x264]
lea eax, [ebp - 0x254]
push str.___s_r_n
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00430df0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4317bd
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00430df0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4317bd
mov eax, dword [ebx + 8]
cdq
test edx, edx
jl 0x4317b8
jg 0x431229
test eax, eax
jb 0x4317b8
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
push dword [ebx + 4]
xor edx, edx
lea ecx, [ebp - 0x248]
call fcn.00430c40
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4317bd
push 0x48cf04
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00430df0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4317bd
cmp dword [ebx + 0x24], eax
je 0x4312dd
push dword [ebp - 0x258]
call dword [0x4a1134]
add esp, 4
mov ecx, edi
call fcn.0043ba10
push eax
push ecx
mov ecx, edi
call fcn.0043ba10
add esp, 4
push eax
push str._________________________08x_08x
call fcn.00448560
add esp, 0xc
mov dword [ebp - 0x258], eax
test eax, eax
je 0x431739
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.00430df0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4317bd
mov edi, ebx
mov dword [ebp - 0x25c], ebx
cmp dword [ebx + 0x24], 0
je 0x43131a
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.00430df0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4317bd
mov ecx, edi
jmp 0x43132d
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x43134c
cmp dword [ebx + 0x2c], 0
jne 0x43132b
test al, 1
je 0x431344
mov ecx, ebx
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x248]
call fcn.00430fc0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4317bd
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x431379
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00430df0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4317bd
mov edi, dword [edi + 0x20]
test edi, edi
je 0x4313b0
push dword [edi]
lea eax, [ebp - 0x254]
push str._r_n_s
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00430df0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4317bd
mov edi, dword [edi + 4]
test edi, edi
jne 0x431380
jmp 0x4313b8
test esi, esi
jne 0x4317bd
push str._r_n_r_n
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00430df0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4317bd
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x431500
test al, 0x10
je 0x431413
mov eax, dword [ebx + 0x18]
cdq
test edx, edx
jl 0x43161d
jg 0x431402
test eax, eax
jb 0x43161d
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
push dword [ebx + 0x14]
jmp 0x4314e6
test al, 0x40
je 0x4314b8
test al, al
jns 0x431427
mov esi, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
jmp 0x43142f
mov eax, dword [ebx + 0x10]
cdq
mov esi, eax
mov edi, edx
mov ebx, dword [ebx + 0x30]
test edi, edi
jl 0x4314a8
jg 0x43143c
test esi, esi
jb 0x4314a8
cmp dword [ebp - 0x250], 0
jl 0x4314a8
jg 0x431450
cmp dword [ebp - 0x254], 0
jb 0x4314a8
push 0x10
call dword [0x4a1120]
add esp, 4
test eax, eax
jne 0x43146d
mov ebx, dword [ebp - 0x260]
lea esi, [eax + 0x1b]
jmp 0x4316c9
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 0x43148f
mov dword [ecx], eax
add dword [ebp - 0x254], esi
mov ebx, dword [ebp - 0x260]
adc dword [ebp - 0x250], edi
xor esi, esi
jmp 0x4316c9
mov ebx, dword [ebp - 0x260]
mov esi, 0x2b
jmp 0x4316c9
test al, al
jns 0x4314c4
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
jmp 0x4314c8
mov eax, dword [ebx + 0x10]
cdq
test edx, edx
jl 0x43161d
jg 0x4314da
test eax, eax
jb 0x43161d
lea ecx, [ebp - 0x254]
push ecx
push edx
push eax
push dword [ebx + 0xc]
mov edx, 1
lea ecx, [ebp - 0x248]
call fcn.00430c40
add esp, 0x10
mov esi, eax
jmp 0x4316c9
mov edi, dword [ebp - 0x25c]
push dword [edi + 0xc]
push 0x48e0dc
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x431523
call dword [sym.imp.MSVCR120.dll___iob_func]
jmp 0x431534
push 0x48bbb4
push dword [edi + 0xc]
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x431697
call dword [sym.imp.MSVCR120.dll___iob_func]
push edi
cmp edi, eax
je 0x431627
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 0x43161d
jg 0x43157b
cmp dword [ebp - 0x254], 0
jb 0x43161d
push 0x10
call dword [0x4a1120]
mov esi, eax
add esp, 4
test esi, esi
jne 0x431594
lea esi, [eax + 0x1b]
jmp 0x4316c9
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 0x4315b6
mov dword [eax], esi
push dword [esi + 8]
push 0x48e0dc
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
je 0x43160c
lea eax, [ebp - 0x244]
push eax
push dword [esi + 8]
call dword [sym.imp.MSVCR120.dll__stat64]
add esp, 8
test eax, eax
jne 0x431613
mov eax, dword [ebp - 0x23e]
and eax, 0xf000
cmp eax, 0x4000
je 0x431613
mov eax, dword [ebp - 0x22c]
add dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x228]
adc dword [ebp - 0x250], eax
xor esi, esi
jmp 0x4316c9
push esi
call dword [0x4a1134]
add esp, 4
mov esi, 0x2b
jmp 0x4316c9
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
test eax, eax
je 0x4316c9
xor edx, edx
jl 0x43161d
jg 0x431650
test eax, eax
jb 0x43161d
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.00430c40
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4316c9
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 0x431646
jmp 0x4316c9
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x4316b8
mov eax, dword [ebp - 0x25c]
push dword [eax + 0xc]
push str.couldnt_open_file___s_
push ecx
call fcn.0043aef0
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 0x4316e9
test esi, esi
je 0x4312e5
jmp 0x4317bd
test esi, esi
jne 0x4317bd
mov edi, dword [ebp - 0x258]
cmp dword [ebx + 0x24], esi
je 0x431722
push edi
push str._r_n___s__
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00430df0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4317bd
mov ebx, dword [ebx]
mov dword [ebp - 0x260], ebx
test ebx, ebx
je 0x431740
mov edi, dword [ebp - 0x26c]
jmp 0x431190
mov esi, 0x1b
jmp 0x4317bd
test esi, esi
jne 0x4317bd
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.00430df0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4317bd
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 [0x4a1134]
add esp, 4
push ebx
call dword [0x4a1134]
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.00452da4
mov esp, ebp
pop ebp
ret
mov esi, 0x2b
lea ecx, [ebp - 0x274]
call fcn.00430e90
push dword [ebp - 0x258]
call dword [0x4a1134]
add esp, 4
push dword [ebp - 0x264]
call dword [0x4a1134]
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00452da4
mov esp, ebp
pop ebp
ret