Function at 0x465f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [esp + 0x30], eax
xorps xmm0, xmm0
mov dword [esp + 0x18], ebx
mov dword [esp + 8], 0
movlpd qword [esp + 0x10], xmm0
mov dword [esp + 0x1c], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], ecx
test ebx, ebx
je 0x466601
mov ecx, edi
call fcn.00452ef0
push eax
push ecx
mov ecx, edi
call fcn.00452ef0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.004507c0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
jne 0x466034
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0046bea8
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, [esp + 0x1c]
push 0
push eax
call fcn.00465d40
mov esi, eax
add esp, 0x14
test esi, esi
je 0x46607b
push edi
call dword [0x5007b0]
mov eax, esi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
jmp 0x466090
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x4660bf
push 0x4e9f74
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x466571
mov edi, dword [esp + 0x14]
push edi
push str.___s_r_n
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x466571
push str.Content_Disposition:_form_data__name_
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x466571
lea eax, [esp + 0x18]
xor edx, edx
push eax
push dword [ebx + 8]
lea ecx, [esp + 0x18]
push dword [ebx + 4]
call fcn.00465be0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x466571
push 0x4e9f6c
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x466571
cmp dword [ebx + 0x24], eax
je 0x4661ab
push dword [esp + 0x24]
call dword [0x5007b0]
mov ecx, dword [esp + 0x34]
add esp, 4
call fcn.00452ef0
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00452ef0
add esp, 4
push eax
push str._________________________08x_08x
call fcn.004507c0
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x46656c
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x466571
mov esi, ebx
mov dword [esp + 0x28], esi
cmp dword [ebx + 0x24], 0
je 0x4661e0
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x466571
mov ecx, esi
jmp 0x4661f3
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x46620e
cmp dword [ebx + 0x2c], 0
jne 0x4661f1
test al, 1
je 0x466206
mov ecx, ebx
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
call fcn.00465ea0
mov edi, eax
add esp, 4
test edi, edi
jne 0x466571
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x466237
push eax
push str._r_nContent_Type:__s
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x466571
mov esi, dword [esi + 0x20]
test esi, esi
je 0x46626c
mov edi, edi
push dword [esi]
lea eax, [esp + 0x1c]
push str._r_n_s
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x466571
mov esi, dword [esi + 4]
test esi, esi
jne 0x466240
jmp 0x466274
test edi, edi
jne 0x466571
push str._r_n_r_n
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x466571
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x466323
test al, 0x10
je 0x4662b1
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
jmp 0x46630b
test al, 0x40
je 0x466300
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x30]
push 0x10
call dword [0x50079c]
add esp, 4
test eax, eax
jne 0x4662d2
lea edi, [eax + 0x1b]
jmp 0x466514
mov ecx, dword [esp + 0x10]
mov dword [eax], 0
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4662f0
mov dword [ecx], eax
add dword [esp + 0x18], edi
adc dword [esp + 0x1c], 0
xor edi, edi
jmp 0x466514
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
mov edx, 1
lea ecx, [esp + 0x1c]
call fcn.00465be0
add esp, 0xc
mov edi, eax
jmp 0x466514
mov esi, dword [esp + 0x28]
push dword [esi + 0xc]
push 0x4eb788
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x46634a
call dword [sym.imp.MSVCR120.dll___iob_func]
mov ebx, eax
mov dword [esp + 0x34], ebx
jmp 0x466361
push 0x4e9f70
push dword [esi + 0xc]
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [esp + 0x34], eax
mov ebx, eax
test ebx, ebx
je 0x4664e8
call dword [sym.imp.MSVCR120.dll___iob_func]
push ebx
cmp ebx, eax
je 0x466418
call dword [sym.imp.MSVCR120.dll_fclose]
mov edi, dword [esi + 0xc]
add esp, 4
push 0x10
call dword [0x50079c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x46639f
mov edi, 0x1b
jmp 0x466510
mov eax, dword [esp + 0x10]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [esp + 0x10], esi
test eax, eax
je 0x4663bd
mov dword [eax], esi
push dword [esi + 8]
push 0x4eb788
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
je 0x466407
lea eax, [esp + 0x48]
push eax
push dword [esi + 8]
call dword [sym.imp.MSVCR120.dll__stat64]
add esp, 8
test eax, eax
jne 0x46640e
mov eax, dword [esp + 0x4e]
and eax, 0xf000
cmp eax, 0x4000
je 0x46640e
mov eax, dword [esp + 0x60]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
adc dword [esp + 0x1c], eax
xor edi, edi
jmp 0x466510
mov edi, 0x2b
jmp 0x466510
push 0x200
lea eax, [esp + 0x88]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x466510
mov ebx, dword [esp + 0x10]
xor edi, edi
push 0x10
call dword [0x50079c]
mov esi, eax
add esp, 4
test esi, esi
je 0x466395
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esi], edi
push eax
call dword [0x50079c]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x4664d7
push dword [esp + 0x2c]
lea ecx, [esp + 0x84]
push ecx
push eax
call sub.MSVCR120.dll_memcpy
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esi + 0xc], ecx
mov byte [ecx + eax], 0
mov dword [esi + 4], 1
test ebx, ebx
je 0x46649f
mov dword [ebx], esi
push dword [esp + 0x34]
add dword [esp + 0x1c], ecx
lea eax, [esp + 0x84]
push 0x200
adc dword [esp + 0x24], edi
mov ebx, esi
push 1
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x466442
jmp 0x466510
push esi
call dword [0x5007b0]
add esp, 4
mov edi, 0x1b
jmp 0x466510
mov eax, dword [esp + 0x30]
test eax, eax
je 0x466501
push dword [esi + 0xc]
push str.couldnt_open_file___s_
push eax
call fcn.004437f0
add esp, 0xc
mov eax, dword [esp + 0x38]
mov edi, 0x1a
mov dword [eax], 0
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x28], eax
test eax, eax
je 0x46652e
test edi, edi
jne 0x466571
mov esi, eax
jmp 0x4661b1
test edi, edi
jne 0x466571
mov esi, dword [esp + 0x24]
cmp dword [ebx + 0x24], edi
je 0x466559
push esi
push str._r_n___s__
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x466571
mov ebx, dword [ebx]
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x4665ac
mov edi, dword [esp + 0x14]
jmp 0x466090
mov edi, 0x1b
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
call fcn.00465de0
push dword [esp + 0x24]
call dword [0x5007b0]
add esp, 4
push ebx
call dword [0x5007b0]
mov eax, edi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x466571
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00465d40
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x466575
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
push esi
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
call dword [0x5007b0]
add esp, 4
push ebx
call dword [0x5007b0]
mov eax, dword [esp + 0x3c]
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x284]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret